Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1736)

Side by Side Diff: chromeos/login_event_recorder.cc

Issue 391373002: Refactoring : Move AuthAttempt and Authenticators to chromeos/login (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge w/ToT Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chromeos/login_event_recorder.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2012 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.
4
5 #include "chromeos/login_event_recorder.h"
6
7 #include <vector>
8
9 #include "base/lazy_instance.h"
10
11 namespace chromeos {
12
13 static base::LazyInstance<LoginEventRecorder> g_login_event_recorder =
14 LAZY_INSTANCE_INITIALIZER;
15
16 LoginEventRecorder::LoginEventRecorder() : delegate_(NULL) {
17 }
18
19 LoginEventRecorder::~LoginEventRecorder() {
20 }
21
22 // static
23 LoginEventRecorder* LoginEventRecorder::Get() {
24 return g_login_event_recorder.Pointer();
25 }
26
27 void LoginEventRecorder::SetDelegate(LoginEventRecorder::Delegate* delegate) {
28 delegate_ = delegate;
29 }
30
31 void LoginEventRecorder::AddLoginTimeMarker(const std::string& marker_name,
32 bool send_to_uma) {
33 if (delegate_)
34 delegate_->AddLoginTimeMarker(marker_name, send_to_uma);
35 }
36
37 } // namespace chromeos
OLDNEW
« no previous file with comments | « chromeos/login_event_recorder.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698