| OLD | NEW | 
|   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  Loading... | 
|  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 | 
| OLD | NEW |