#include "chrome/browser/metrics/desktop_session_duration/desktop_profile_session_durations_service.h"
#include "chrome/browser/signin/identity_manager_factory.h"
#include "components/signin/core/browser/signin_status_metrics_provider_helpers.h"
#include "components/sync/service/sync_service.h"
#include "components/sync/service/sync_session_durations_metrics_recorder.h"
namespace metrics {
DesktopProfileSessionDurationsService::DesktopProfileSessionDurationsService(
PrefService* pref_service,
syncer::SyncService* sync_service,
signin::IdentityManager* identity_manager,
DesktopSessionDurationTracker* tracker)
: … { … }
DesktopProfileSessionDurationsService::
~DesktopProfileSessionDurationsService() = default;
void DesktopProfileSessionDurationsService::Shutdown() { … }
signin_metrics::SingleProfileSigninStatus
DesktopProfileSessionDurationsService::GetSigninStatus() const { … }
bool DesktopProfileSessionDurationsService::IsSyncing() const { … }
void DesktopProfileSessionDurationsService::OnSessionStarted(
base::TimeTicks session_start) { … }
void DesktopProfileSessionDurationsService::OnSessionEnded(
base::TimeDelta session_length,
base::TimeTicks session_end) { … }
}