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/chromeos/login/login_utils.h" | 5 #include "chrome/browser/chromeos/login/login_utils.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "ash/ash_switches.h" | 9 #include "ash/ash_switches.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 13 matching lines...) Expand all Loading... |
24 #include "base/utf_string_conversions.h" | 24 #include "base/utf_string_conversions.h" |
25 #include "chrome/browser/browser_process.h" | 25 #include "chrome/browser/browser_process.h" |
26 #include "chrome/browser/browser_shutdown.h" | 26 #include "chrome/browser/browser_shutdown.h" |
27 #include "chrome/browser/chromeos/boot_times_loader.h" | 27 #include "chrome/browser/chromeos/boot_times_loader.h" |
28 #include "chrome/browser/chromeos/cros/cert_library.h" | 28 #include "chrome/browser/chromeos/cros/cert_library.h" |
29 #include "chrome/browser/chromeos/cros/cros_library.h" | 29 #include "chrome/browser/chromeos/cros/cros_library.h" |
30 #include "chrome/browser/chromeos/cros/cryptohome_library.h" | 30 #include "chrome/browser/chromeos/cros/cryptohome_library.h" |
31 #include "chrome/browser/chromeos/cros/network_library.h" | 31 #include "chrome/browser/chromeos/cros/network_library.h" |
32 #include "chrome/browser/chromeos/cros_settings.h" | 32 #include "chrome/browser/chromeos/cros_settings.h" |
33 #include "chrome/browser/chromeos/cros_settings_names.h" | 33 #include "chrome/browser/chromeos/cros_settings_names.h" |
34 #include "chrome/browser/chromeos/dbus/dbus_thread_manager.h" | |
35 #include "chrome/browser/chromeos/dbus/session_manager_client.h" | |
36 #include "chrome/browser/chromeos/input_method/input_method_manager.h" | 34 #include "chrome/browser/chromeos/input_method/input_method_manager.h" |
37 #include "chrome/browser/chromeos/input_method/input_method_util.h" | 35 #include "chrome/browser/chromeos/input_method/input_method_util.h" |
38 #include "chrome/browser/chromeos/login/language_switch_menu.h" | 36 #include "chrome/browser/chromeos/login/language_switch_menu.h" |
39 #include "chrome/browser/chromeos/login/login_display_host.h" | 37 #include "chrome/browser/chromeos/login/login_display_host.h" |
40 #include "chrome/browser/chromeos/login/ownership_service.h" | 38 #include "chrome/browser/chromeos/login/ownership_service.h" |
41 #include "chrome/browser/chromeos/login/parallel_authenticator.h" | 39 #include "chrome/browser/chromeos/login/parallel_authenticator.h" |
42 #include "chrome/browser/chromeos/login/screen_locker.h" | 40 #include "chrome/browser/chromeos/login/screen_locker.h" |
43 #include "chrome/browser/chromeos/login/user_manager.h" | 41 #include "chrome/browser/chromeos/login/user_manager.h" |
44 #include "chrome/browser/chromeos/status/status_area_view_chromeos.h" | 42 #include "chrome/browser/chromeos/status/status_area_view_chromeos.h" |
45 #include "chrome/browser/extensions/extension_service.h" | 43 #include "chrome/browser/extensions/extension_service.h" |
(...skipping 16 matching lines...) Expand all Loading... |
62 #include "chrome/common/chrome_notification_types.h" | 60 #include "chrome/common/chrome_notification_types.h" |
63 #include "chrome/common/chrome_paths.h" | 61 #include "chrome/common/chrome_paths.h" |
64 #include "chrome/common/chrome_switches.h" | 62 #include "chrome/common/chrome_switches.h" |
65 #include "chrome/common/logging_chrome.h" | 63 #include "chrome/common/logging_chrome.h" |
66 #include "chrome/common/net/gaia/gaia_auth_consumer.h" | 64 #include "chrome/common/net/gaia/gaia_auth_consumer.h" |
67 #include "chrome/common/net/gaia/gaia_auth_fetcher.h" | 65 #include "chrome/common/net/gaia/gaia_auth_fetcher.h" |
68 #include "chrome/common/net/gaia/gaia_constants.h" | 66 #include "chrome/common/net/gaia/gaia_constants.h" |
69 #include "chrome/common/net/gaia/gaia_urls.h" | 67 #include "chrome/common/net/gaia/gaia_urls.h" |
70 #include "chrome/common/pref_names.h" | 68 #include "chrome/common/pref_names.h" |
71 #include "chrome/common/url_constants.h" | 69 #include "chrome/common/url_constants.h" |
| 70 #include "chromeos/dbus/dbus_thread_manager.h" |
| 71 #include "chromeos/dbus/session_manager_client.h" |
72 #include "content/public/browser/browser_thread.h" | 72 #include "content/public/browser/browser_thread.h" |
73 #include "content/public/browser/notification_service.h" | 73 #include "content/public/browser/notification_service.h" |
74 #include "googleurl/src/gurl.h" | 74 #include "googleurl/src/gurl.h" |
75 #include "net/base/network_change_notifier.h" | 75 #include "net/base/network_change_notifier.h" |
76 #include "net/cookies/cookie_monster.h" | 76 #include "net/cookies/cookie_monster.h" |
77 #include "net/cookies/cookie_store.h" | 77 #include "net/cookies/cookie_store.h" |
78 #include "net/http/http_auth_cache.h" | 78 #include "net/http/http_auth_cache.h" |
79 #include "net/http/http_network_session.h" | 79 #include "net/http/http_network_session.h" |
80 #include "net/http/http_transaction_factory.h" | 80 #include "net/http/http_transaction_factory.h" |
81 #include "net/url_request/url_request_context.h" | 81 #include "net/url_request/url_request_context.h" |
(...skipping 1367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1449 bool LoginUtils::IsWhitelisted(const std::string& username) { | 1449 bool LoginUtils::IsWhitelisted(const std::string& username) { |
1450 CrosSettings* cros_settings = CrosSettings::Get(); | 1450 CrosSettings* cros_settings = CrosSettings::Get(); |
1451 bool allow_new_user = false; | 1451 bool allow_new_user = false; |
1452 cros_settings->GetBoolean(kAccountsPrefAllowNewUser, &allow_new_user); | 1452 cros_settings->GetBoolean(kAccountsPrefAllowNewUser, &allow_new_user); |
1453 if (allow_new_user) | 1453 if (allow_new_user) |
1454 return true; | 1454 return true; |
1455 return cros_settings->FindEmailInList(kAccountsPrefUsers, username); | 1455 return cros_settings->FindEmailInList(kAccountsPrefUsers, username); |
1456 } | 1456 } |
1457 | 1457 |
1458 } // namespace chromeos | 1458 } // namespace chromeos |
OLD | NEW |