| 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/callback.h" | 7 #include "base/callback.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 11 #include "base/metrics/histogram.h" | 11 #include "base/metrics/histogram.h" |
| 12 #include "base/prefs/pref_service.h" | 12 #include "base/prefs/pref_service.h" |
| 13 #include "base/string16.h" | 13 #include "base/strings/string16.h" |
| 14 #include "base/string_util.h" | 14 #include "base/strings/string_util.h" |
| 15 #include "base/stringprintf.h" | 15 #include "base/strings/stringprintf.h" |
| 16 #include "base/strings/utf_string_conversions.h" | 16 #include "base/strings/utf_string_conversions.h" |
| 17 #include "chrome/browser/browser_process.h" | 17 #include "chrome/browser/browser_process.h" |
| 18 #include "chrome/browser/browser_process_platform_part_chromeos.h" | 18 #include "chrome/browser/browser_process_platform_part_chromeos.h" |
| 19 #include "chrome/browser/browser_shutdown.h" | 19 #include "chrome/browser/browser_shutdown.h" |
| 20 #include "chrome/browser/chromeos/app_mode/kiosk_app_manager.h" | 20 #include "chrome/browser/chromeos/app_mode/kiosk_app_manager.h" |
| 21 #include "chrome/browser/chromeos/kiosk_mode/kiosk_mode_settings.h" | 21 #include "chrome/browser/chromeos/kiosk_mode/kiosk_mode_settings.h" |
| 22 #include "chrome/browser/chromeos/login/hwid_checker.h" | 22 #include "chrome/browser/chromeos/login/hwid_checker.h" |
| 23 #include "chrome/browser/chromeos/login/login_display_host_impl.h" | 23 #include "chrome/browser/chromeos/login/login_display_host_impl.h" |
| 24 #include "chrome/browser/chromeos/login/screen_locker.h" | 24 #include "chrome/browser/chromeos/login/screen_locker.h" |
| 25 #include "chrome/browser/chromeos/login/user.h" | 25 #include "chrome/browser/chromeos/login/user.h" |
| (...skipping 1610 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1636 if (!cros_settings) | 1636 if (!cros_settings) |
| 1637 return false; | 1637 return false; |
| 1638 | 1638 |
| 1639 // Offline login is allowed only when user pods are hidden. | 1639 // Offline login is allowed only when user pods are hidden. |
| 1640 bool show_pods; | 1640 bool show_pods; |
| 1641 cros_settings->GetBoolean(kAccountsPrefShowUserNamesOnSignIn, &show_pods); | 1641 cros_settings->GetBoolean(kAccountsPrefShowUserNamesOnSignIn, &show_pods); |
| 1642 return !show_pods; | 1642 return !show_pods; |
| 1643 } | 1643 } |
| 1644 | 1644 |
| 1645 } // namespace chromeos | 1645 } // namespace chromeos |
| OLD | NEW |