| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/ui/webui/chromeos/login/signin_screen_handler.h" | 5 #include "chrome/browser/ui/webui/chromeos/login/signin_screen_handler.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
| 9 #include "base/callback.h" | 9 #include "base/callback.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 1268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1279 | 1279 |
| 1280 is_account_picker_showing_first_time_ = true; | 1280 is_account_picker_showing_first_time_ = true; |
| 1281 MaybePreloadAuthExtension(); | 1281 MaybePreloadAuthExtension(); |
| 1282 | 1282 |
| 1283 if (ScreenLocker::default_screen_locker()) { | 1283 if (ScreenLocker::default_screen_locker()) { |
| 1284 content::NotificationService::current()->Notify( | 1284 content::NotificationService::current()->Notify( |
| 1285 chrome::NOTIFICATION_LOCK_WEBUI_READY, | 1285 chrome::NOTIFICATION_LOCK_WEBUI_READY, |
| 1286 content::NotificationService::AllSources(), | 1286 content::NotificationService::AllSources(), |
| 1287 content::NotificationService::NoDetails()); | 1287 content::NotificationService::NoDetails()); |
| 1288 } | 1288 } |
| 1289 |
| 1290 if (delegate_) |
| 1291 delegate_->OnSigninScreenReady(); |
| 1289 } | 1292 } |
| 1290 | 1293 |
| 1291 void SigninScreenHandler::HandleWallpaperReady( | 1294 void SigninScreenHandler::HandleWallpaperReady( |
| 1292 const base::ListValue* args) { | 1295 const base::ListValue* args) { |
| 1293 if (ScreenLocker::default_screen_locker()) { | 1296 if (ScreenLocker::default_screen_locker()) { |
| 1294 content::NotificationService::current()->Notify( | 1297 content::NotificationService::current()->Notify( |
| 1295 chrome::NOTIFICATION_LOCK_BACKGROUND_DISPLAYED, | 1298 chrome::NOTIFICATION_LOCK_BACKGROUND_DISPLAYED, |
| 1296 content::NotificationService::AllSources(), | 1299 content::NotificationService::AllSources(), |
| 1297 content::NotificationService::NoDetails()); | 1300 content::NotificationService::NoDetails()); |
| 1298 } | 1301 } |
| (...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1660 if (!cros_settings) | 1663 if (!cros_settings) |
| 1661 return false; | 1664 return false; |
| 1662 | 1665 |
| 1663 // Offline login is allowed only when user pods are hidden. | 1666 // Offline login is allowed only when user pods are hidden. |
| 1664 bool show_pods; | 1667 bool show_pods; |
| 1665 cros_settings->GetBoolean(kAccountsPrefShowUserNamesOnSignIn, &show_pods); | 1668 cros_settings->GetBoolean(kAccountsPrefShowUserNamesOnSignIn, &show_pods); |
| 1666 return !show_pods; | 1669 return !show_pods; |
| 1667 } | 1670 } |
| 1668 | 1671 |
| 1669 } // namespace chromeos | 1672 } // namespace chromeos |
| OLD | NEW |