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 1376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1387 | 1387 |
1388 is_account_picker_showing_first_time_ = true; | 1388 is_account_picker_showing_first_time_ = true; |
1389 MaybePreloadAuthExtension(); | 1389 MaybePreloadAuthExtension(); |
1390 | 1390 |
1391 if (ScreenLocker::default_screen_locker()) { | 1391 if (ScreenLocker::default_screen_locker()) { |
1392 content::NotificationService::current()->Notify( | 1392 content::NotificationService::current()->Notify( |
1393 chrome::NOTIFICATION_LOCK_WEBUI_READY, | 1393 chrome::NOTIFICATION_LOCK_WEBUI_READY, |
1394 content::NotificationService::AllSources(), | 1394 content::NotificationService::AllSources(), |
1395 content::NotificationService::NoDetails()); | 1395 content::NotificationService::NoDetails()); |
1396 } | 1396 } |
| 1397 |
| 1398 if (delegate_) |
| 1399 delegate_->OnSigninScreenReady(); |
1397 } | 1400 } |
1398 | 1401 |
1399 void SigninScreenHandler::HandleWallpaperReady( | 1402 void SigninScreenHandler::HandleWallpaperReady( |
1400 const base::ListValue* args) { | 1403 const base::ListValue* args) { |
1401 if (ScreenLocker::default_screen_locker()) { | 1404 if (ScreenLocker::default_screen_locker()) { |
1402 content::NotificationService::current()->Notify( | 1405 content::NotificationService::current()->Notify( |
1403 chrome::NOTIFICATION_LOCK_BACKGROUND_DISPLAYED, | 1406 chrome::NOTIFICATION_LOCK_BACKGROUND_DISPLAYED, |
1404 content::NotificationService::AllSources(), | 1407 content::NotificationService::AllSources(), |
1405 content::NotificationService::NoDetails()); | 1408 content::NotificationService::NoDetails()); |
1406 } | 1409 } |
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1766 if (!cros_settings) | 1769 if (!cros_settings) |
1767 return false; | 1770 return false; |
1768 | 1771 |
1769 // Offline login is allowed only when user pods are hidden. | 1772 // Offline login is allowed only when user pods are hidden. |
1770 bool show_pods; | 1773 bool show_pods; |
1771 cros_settings->GetBoolean(kAccountsPrefShowUserNamesOnSignIn, &show_pods); | 1774 cros_settings->GetBoolean(kAccountsPrefShowUserNamesOnSignIn, &show_pods); |
1772 return !show_pods; | 1775 return !show_pods; |
1773 } | 1776 } |
1774 | 1777 |
1775 } // namespace chromeos | 1778 } // namespace chromeos |
OLD | NEW |