OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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 "chrome/browser/chromeos/login/screen_locker.h" | 5 #include "chrome/browser/chromeos/login/screen_locker.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "ash/ash_switches.h" | 10 #include "ash/ash_switches.h" |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 } else { | 193 } else { |
194 base::TimeDelta delta = base::Time::Now() - authentication_start_time_; | 194 base::TimeDelta delta = base::Time::Now() - authentication_start_time_; |
195 VLOG(1) << "Authentication success: " << delta.InSecondsF() << " second(s)"; | 195 VLOG(1) << "Authentication success: " << delta.InSecondsF() << " second(s)"; |
196 UMA_HISTOGRAM_TIMES("ScreenLocker.AuthenticationSuccessTime", delta); | 196 UMA_HISTOGRAM_TIMES("ScreenLocker.AuthenticationSuccessTime", delta); |
197 } | 197 } |
198 | 198 |
199 Profile* profile = ProfileManager::GetDefaultProfile(); | 199 Profile* profile = ProfileManager::GetDefaultProfile(); |
200 if (profile && !user_context.password.empty()) { | 200 if (profile && !user_context.password.empty()) { |
201 // We have a non-empty password, so notify listeners (such as the sync | 201 // We have a non-empty password, so notify listeners (such as the sync |
202 // engine). | 202 // engine). |
203 SigninManager* signin = SigninManagerFactory::GetForProfile(profile); | 203 SigninManagerBase* signin = SigninManagerFactory::GetForProfile(profile); |
204 DCHECK(signin); | 204 DCHECK(signin); |
205 GoogleServiceSigninSuccessDetails details( | 205 GoogleServiceSigninSuccessDetails details( |
206 signin->GetAuthenticatedUsername(), | 206 signin->GetAuthenticatedUsername(), |
207 user_context.password); | 207 user_context.password); |
208 content::NotificationService::current()->Notify( | 208 content::NotificationService::current()->Notify( |
209 chrome::NOTIFICATION_GOOGLE_SIGNIN_SUCCESSFUL, | 209 chrome::NOTIFICATION_GOOGLE_SIGNIN_SUCCESSFUL, |
210 content::Source<Profile>(profile), | 210 content::Source<Profile>(profile), |
211 content::Details<const GoogleServiceSigninSuccessDetails>(&details)); | 211 content::Details<const GoogleServiceSigninSuccessDetails>(&details)); |
212 } | 212 } |
213 | 213 |
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
429 content::Details<bool>(&state)); | 429 content::Details<bool>(&state)); |
430 VLOG(1) << "Calling session manager's HandleLockScreenShown D-Bus method"; | 430 VLOG(1) << "Calling session manager's HandleLockScreenShown D-Bus method"; |
431 DBusThreadManager::Get()->GetSessionManagerClient()->NotifyLockScreenShown(); | 431 DBusThreadManager::Get()->GetSessionManagerClient()->NotifyLockScreenShown(); |
432 } | 432 } |
433 | 433 |
434 content::WebUI* ScreenLocker::GetAssociatedWebUI() { | 434 content::WebUI* ScreenLocker::GetAssociatedWebUI() { |
435 return delegate_->GetAssociatedWebUI(); | 435 return delegate_->GetAssociatedWebUI(); |
436 } | 436 } |
437 | 437 |
438 } // namespace chromeos | 438 } // namespace chromeos |
OLD | NEW |