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 1441 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1452 | 1452 |
1453 is_account_picker_showing_first_time_ = true; | 1453 is_account_picker_showing_first_time_ = true; |
1454 MaybePreloadAuthExtension(); | 1454 MaybePreloadAuthExtension(); |
1455 | 1455 |
1456 if (ScreenLocker::default_screen_locker()) { | 1456 if (ScreenLocker::default_screen_locker()) { |
1457 content::NotificationService::current()->Notify( | 1457 content::NotificationService::current()->Notify( |
1458 chrome::NOTIFICATION_LOCK_WEBUI_READY, | 1458 chrome::NOTIFICATION_LOCK_WEBUI_READY, |
1459 content::NotificationService::AllSources(), | 1459 content::NotificationService::AllSources(), |
1460 content::NotificationService::NoDetails()); | 1460 content::NotificationService::NoDetails()); |
1461 } | 1461 } |
| 1462 |
| 1463 if (delegate_) |
| 1464 delegate_->OnSigninScreenReady(); |
1462 } | 1465 } |
1463 | 1466 |
1464 void SigninScreenHandler::HandleWallpaperReady( | 1467 void SigninScreenHandler::HandleWallpaperReady( |
1465 const base::ListValue* args) { | 1468 const base::ListValue* args) { |
1466 if (ScreenLocker::default_screen_locker()) { | 1469 if (ScreenLocker::default_screen_locker()) { |
1467 content::NotificationService::current()->Notify( | 1470 content::NotificationService::current()->Notify( |
1468 chrome::NOTIFICATION_LOCK_BACKGROUND_DISPLAYED, | 1471 chrome::NOTIFICATION_LOCK_BACKGROUND_DISPLAYED, |
1469 content::NotificationService::AllSources(), | 1472 content::NotificationService::AllSources(), |
1470 content::NotificationService::NoDetails()); | 1473 content::NotificationService::NoDetails()); |
1471 } | 1474 } |
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1871 if (!cros_settings) | 1874 if (!cros_settings) |
1872 return false; | 1875 return false; |
1873 | 1876 |
1874 // Offline login is allowed only when user pods are hidden. | 1877 // Offline login is allowed only when user pods are hidden. |
1875 bool show_pods; | 1878 bool show_pods; |
1876 cros_settings->GetBoolean(kAccountsPrefShowUserNamesOnSignIn, &show_pods); | 1879 cros_settings->GetBoolean(kAccountsPrefShowUserNamesOnSignIn, &show_pods); |
1877 return !show_pods; | 1880 return !show_pods; |
1878 } | 1881 } |
1879 | 1882 |
1880 } // namespace chromeos | 1883 } // namespace chromeos |
OLD | NEW |