1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "chromeos/login_event_recorder.h"
9 #include "base/lazy_instance.h"
13 static base::LazyInstance
<LoginEventRecorder
> g_login_event_recorder
=
14 LAZY_INSTANCE_INITIALIZER
;
16 LoginEventRecorder::LoginEventRecorder() : delegate_(NULL
) {
19 LoginEventRecorder::~LoginEventRecorder() {
23 LoginEventRecorder
* LoginEventRecorder::Get() {
24 return g_login_event_recorder
.Pointer();
27 void LoginEventRecorder::SetDelegate(LoginEventRecorder::Delegate
* delegate
) {
31 void LoginEventRecorder::AddLoginTimeMarker(const std::string
& marker_name
,
34 delegate_
->AddLoginTimeMarker(marker_name
, send_to_uma
);
37 } // namespace chromeos