| 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" |
| 11 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "base/prefs/pref_service.h" |
| 12 #include "base/string16.h" | 13 #include "base/string16.h" |
| 13 #include "base/string_util.h" | 14 #include "base/string_util.h" |
| 14 #include "base/stringprintf.h" | 15 #include "base/stringprintf.h" |
| 15 #include "base/utf_string_conversions.h" | 16 #include "base/utf_string_conversions.h" |
| 16 #include "chrome/browser/browser_process.h" | 17 #include "chrome/browser/browser_process.h" |
| 17 #include "chrome/browser/browser_shutdown.h" | 18 #include "chrome/browser/browser_shutdown.h" |
| 18 #include "chrome/browser/browsing_data/browsing_data_helper.h" | 19 #include "chrome/browser/browsing_data/browsing_data_helper.h" |
| 19 #include "chrome/browser/browsing_data/browsing_data_remover.h" | 20 #include "chrome/browser/browsing_data/browsing_data_remover.h" |
| 20 #include "chrome/browser/chromeos/cros/cros_library.h" | 21 #include "chrome/browser/chromeos/cros/cros_library.h" |
| 21 #include "chrome/browser/chromeos/cros/network_library.h" | 22 #include "chrome/browser/chromeos/cros/network_library.h" |
| 22 #include "chrome/browser/chromeos/input_method/input_method_configuration.h" | 23 #include "chrome/browser/chromeos/input_method/input_method_configuration.h" |
| 23 #include "chrome/browser/chromeos/input_method/input_method_manager.h" | 24 #include "chrome/browser/chromeos/input_method/input_method_manager.h" |
| 24 #include "chrome/browser/chromeos/input_method/xkeyboard.h" | 25 #include "chrome/browser/chromeos/input_method/xkeyboard.h" |
| 25 #include "chrome/browser/chromeos/kiosk_mode/kiosk_mode_settings.h" | 26 #include "chrome/browser/chromeos/kiosk_mode/kiosk_mode_settings.h" |
| 26 #include "chrome/browser/chromeos/login/base_login_display_host.h" | 27 #include "chrome/browser/chromeos/login/base_login_display_host.h" |
| 27 #include "chrome/browser/chromeos/login/error_screen_actor.h" | 28 #include "chrome/browser/chromeos/login/error_screen_actor.h" |
| 28 #include "chrome/browser/chromeos/login/screen_locker.h" | 29 #include "chrome/browser/chromeos/login/screen_locker.h" |
| 29 #include "chrome/browser/chromeos/login/user.h" | 30 #include "chrome/browser/chromeos/login/user.h" |
| 30 #include "chrome/browser/chromeos/login/webui_login_display.h" | 31 #include "chrome/browser/chromeos/login/webui_login_display.h" |
| 31 #include "chrome/browser/chromeos/net/network_portal_detector.h" | 32 #include "chrome/browser/chromeos/net/network_portal_detector.h" |
| 32 #include "chrome/browser/chromeos/settings/cros_settings.h" | 33 #include "chrome/browser/chromeos/settings/cros_settings.h" |
| 33 #include "chrome/browser/io_thread.h" | 34 #include "chrome/browser/io_thread.h" |
| 34 #include "chrome/browser/policy/browser_policy_connector.h" | 35 #include "chrome/browser/policy/browser_policy_connector.h" |
| 35 #include "chrome/browser/prefs/pref_service.h" | |
| 36 #include "chrome/browser/profiles/profile.h" | 36 #include "chrome/browser/profiles/profile.h" |
| 37 #include "chrome/browser/ui/webui/chromeos/login/error_screen_handler.h" | 37 #include "chrome/browser/ui/webui/chromeos/login/error_screen_handler.h" |
| 38 #include "chrome/browser/ui/webui/chromeos/login/native_window_delegate.h" | 38 #include "chrome/browser/ui/webui/chromeos/login/native_window_delegate.h" |
| 39 #include "chrome/browser/ui/webui/chromeos/login/network_state_informer.h" | 39 #include "chrome/browser/ui/webui/chromeos/login/network_state_informer.h" |
| 40 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h" | 40 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h" |
| 41 #include "chrome/common/chrome_notification_types.h" | 41 #include "chrome/common/chrome_notification_types.h" |
| 42 #include "chrome/common/chrome_switches.h" | 42 #include "chrome/common/chrome_switches.h" |
| 43 #include "chrome/common/pref_names.h" | 43 #include "chrome/common/pref_names.h" |
| 44 #include "chrome/common/url_constants.h" | 44 #include "chrome/common/url_constants.h" |
| 45 #include "chromeos/chromeos_switches.h" | 45 #include "chromeos/chromeos_switches.h" |
| (...skipping 1614 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1660 if (!cros_settings) | 1660 if (!cros_settings) |
| 1661 return false; | 1661 return false; |
| 1662 | 1662 |
| 1663 // Offline login is allowed only when user pods are hidden. | 1663 // Offline login is allowed only when user pods are hidden. |
| 1664 bool show_pods; | 1664 bool show_pods; |
| 1665 cros_settings->GetBoolean(kAccountsPrefShowUserNamesOnSignIn, &show_pods); | 1665 cros_settings->GetBoolean(kAccountsPrefShowUserNamesOnSignIn, &show_pods); |
| 1666 return !show_pods; | 1666 return !show_pods; |
| 1667 } | 1667 } |
| 1668 | 1668 |
| 1669 } // namespace chromeos | 1669 } // namespace chromeos |
| OLD | NEW |