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

Side by Side Diff: chromeos/login_event_recorder.cc

Issue 409113002: Refactoring: get rid of notificataions in ParallelAuthenticator (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix nits Created 6 years, 4 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
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chromeos/login_event_recorder.h" 5 #include "chromeos/login_event_recorder.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/lazy_instance.h" 9 #include "base/lazy_instance.h"
10 10
(...skipping 16 matching lines...) Expand all
27 void LoginEventRecorder::SetDelegate(LoginEventRecorder::Delegate* delegate) { 27 void LoginEventRecorder::SetDelegate(LoginEventRecorder::Delegate* delegate) {
28 delegate_ = delegate; 28 delegate_ = delegate;
29 } 29 }
30 30
31 void LoginEventRecorder::AddLoginTimeMarker(const std::string& marker_name, 31 void LoginEventRecorder::AddLoginTimeMarker(const std::string& marker_name,
32 bool send_to_uma) { 32 bool send_to_uma) {
33 if (delegate_) 33 if (delegate_)
34 delegate_->AddLoginTimeMarker(marker_name, send_to_uma); 34 delegate_->AddLoginTimeMarker(marker_name, send_to_uma);
35 } 35 }
36 36
37 void LoginEventRecorder::RecordAuthenticationSuccess() {
38 if (delegate_)
39 delegate_->RecordAuthenticationSuccess();
40 }
41
42 void LoginEventRecorder::RecordAuthenticationFailure() {
43 if (delegate_)
44 delegate_->RecordAuthenticationFailure();
45 }
46
37 } // namespace chromeos 47 } // 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