OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 14 matching lines...) Expand all Loading... |
25 #include "chrome/browser/chromeos/login/captive_portal_window_proxy.h" | 25 #include "chrome/browser/chromeos/login/captive_portal_window_proxy.h" |
26 #include "chrome/browser/chromeos/login/screen_locker.h" | 26 #include "chrome/browser/chromeos/login/screen_locker.h" |
27 #include "chrome/browser/chromeos/login/user.h" | 27 #include "chrome/browser/chromeos/login/user.h" |
28 #include "chrome/browser/chromeos/login/webui_login_display.h" | 28 #include "chrome/browser/chromeos/login/webui_login_display.h" |
29 #include "chrome/browser/chromeos/settings/cros_settings.h" | 29 #include "chrome/browser/chromeos/settings/cros_settings.h" |
30 #include "chrome/browser/io_thread.h" | 30 #include "chrome/browser/io_thread.h" |
31 #include "chrome/browser/policy/browser_policy_connector.h" | 31 #include "chrome/browser/policy/browser_policy_connector.h" |
32 #include "chrome/browser/profiles/profile.h" | 32 #include "chrome/browser/profiles/profile.h" |
33 #include "chrome/common/chrome_notification_types.h" | 33 #include "chrome/common/chrome_notification_types.h" |
34 #include "chrome/common/chrome_switches.h" | 34 #include "chrome/common/chrome_switches.h" |
35 #include "chrome/common/net/gaia/gaia_auth_util.h" | |
36 #include "chrome/common/net/gaia/gaia_switches.h" | |
37 #include "chrome/common/net/gaia/gaia_urls.h" | |
38 #include "chrome/common/url_constants.h" | 35 #include "chrome/common/url_constants.h" |
39 #include "chromeos/dbus/dbus_thread_manager.h" | 36 #include "chromeos/dbus/dbus_thread_manager.h" |
40 #include "chromeos/dbus/power_manager_client.h" | 37 #include "chromeos/dbus/power_manager_client.h" |
41 #include "content/public/browser/notification_observer.h" | 38 #include "content/public/browser/notification_observer.h" |
42 #include "content/public/browser/notification_registrar.h" | 39 #include "content/public/browser/notification_registrar.h" |
43 #include "content/public/browser/notification_service.h" | 40 #include "content/public/browser/notification_service.h" |
44 #include "content/public/browser/render_view_host.h" | 41 #include "content/public/browser/render_view_host.h" |
45 #include "content/public/browser/web_contents.h" | 42 #include "content/public/browser/web_contents.h" |
| 43 #include "google_apis/gaia/gaia_auth_util.h" |
| 44 #include "google_apis/gaia/gaia_switches.h" |
| 45 #include "google_apis/gaia/gaia_urls.h" |
46 #include "grit/generated_resources.h" | 46 #include "grit/generated_resources.h" |
47 #include "ui/base/l10n/l10n_util.h" | 47 #include "ui/base/l10n/l10n_util.h" |
48 | 48 |
49 #if defined(USE_AURA) | 49 #if defined(USE_AURA) |
50 #include "ash/shell.h" | 50 #include "ash/shell.h" |
51 #include "ash/wm/power_button_controller.h" | 51 #include "ash/wm/power_button_controller.h" |
52 #endif | 52 #endif |
53 | 53 |
54 using content::BrowserThread; | 54 using content::BrowserThread; |
55 using content::RenderViewHost; | 55 using content::RenderViewHost; |
(...skipping 1098 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1154 } | 1154 } |
1155 for (UserList::const_iterator it = users.begin(); it != users.end(); ++it) { | 1155 for (UserList::const_iterator it = users.begin(); it != users.end(); ++it) { |
1156 if (!cros_settings->FindEmailInList(kAccountsPrefUsers, (*it)->email())) { | 1156 if (!cros_settings->FindEmailInList(kAccountsPrefUsers, (*it)->email())) { |
1157 return false; | 1157 return false; |
1158 } | 1158 } |
1159 } | 1159 } |
1160 return true; | 1160 return true; |
1161 } | 1161 } |
1162 | 1162 |
1163 } // namespace chromeos | 1163 } // namespace chromeos |
OLD | NEW |