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 <algorithm> | 7 #include <algorithm> |
8 #include <set> | 8 #include <set> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 17 matching lines...) Expand all Loading... |
28 #include "base/task_runner_util.h" | 28 #include "base/task_runner_util.h" |
29 #include "base/threading/worker_pool.h" | 29 #include "base/threading/worker_pool.h" |
30 #include "base/time/time.h" | 30 #include "base/time/time.h" |
31 #include "chrome/browser/about_flags.h" | 31 #include "chrome/browser/about_flags.h" |
32 #include "chrome/browser/app_mode/app_mode_utils.h" | 32 #include "chrome/browser/app_mode/app_mode_utils.h" |
33 #include "chrome/browser/browser_process.h" | 33 #include "chrome/browser/browser_process.h" |
34 #include "chrome/browser/browser_shutdown.h" | 34 #include "chrome/browser/browser_shutdown.h" |
35 #include "chrome/browser/chrome_notification_types.h" | 35 #include "chrome/browser/chrome_notification_types.h" |
36 #include "chrome/browser/chromeos/boot_times_loader.h" | 36 #include "chrome/browser/chromeos/boot_times_loader.h" |
37 #include "chrome/browser/chromeos/login/auth/parallel_authenticator.h" | 37 #include "chrome/browser/chromeos/login/auth/parallel_authenticator.h" |
38 #include "chrome/browser/chromeos/login/auth/user_context.h" | |
39 #include "chrome/browser/chromeos/login/chrome_restart_request.h" | 38 #include "chrome/browser/chromeos/login/chrome_restart_request.h" |
40 #include "chrome/browser/chromeos/login/demo_mode/demo_app_launcher.h" | 39 #include "chrome/browser/chromeos/login/demo_mode/demo_app_launcher.h" |
41 #include "chrome/browser/chromeos/login/existing_user_controller.h" | 40 #include "chrome/browser/chromeos/login/existing_user_controller.h" |
42 #include "chrome/browser/chromeos/login/lock/screen_locker.h" | 41 #include "chrome/browser/chromeos/login/lock/screen_locker.h" |
43 #include "chrome/browser/chromeos/login/profile_auth_data.h" | 42 #include "chrome/browser/chromeos/login/profile_auth_data.h" |
44 #include "chrome/browser/chromeos/login/saml/saml_offline_signin_limiter.h" | 43 #include "chrome/browser/chromeos/login/saml/saml_offline_signin_limiter.h" |
45 #include "chrome/browser/chromeos/login/saml/saml_offline_signin_limiter_factory
.h" | 44 #include "chrome/browser/chromeos/login/saml/saml_offline_signin_limiter_factory
.h" |
46 #include "chrome/browser/chromeos/login/session/user_session_manager.h" | 45 #include "chrome/browser/chromeos/login/session/user_session_manager.h" |
47 #include "chrome/browser/chromeos/login/signin/oauth2_login_manager.h" | 46 #include "chrome/browser/chromeos/login/signin/oauth2_login_manager.h" |
48 #include "chrome/browser/chromeos/login/signin/oauth2_login_manager_factory.h" | 47 #include "chrome/browser/chromeos/login/signin/oauth2_login_manager_factory.h" |
(...skipping 20 matching lines...) Expand all Loading... |
69 #include "chrome/browser/ui/startup/startup_browser_creator.h" | 68 #include "chrome/browser/ui/startup/startup_browser_creator.h" |
70 #include "chrome/common/chrome_switches.h" | 69 #include "chrome/common/chrome_switches.h" |
71 #include "chrome/common/logging_chrome.h" | 70 #include "chrome/common/logging_chrome.h" |
72 #include "chrome/common/pref_names.h" | 71 #include "chrome/common/pref_names.h" |
73 #include "chromeos/chromeos_switches.h" | 72 #include "chromeos/chromeos_switches.h" |
74 #include "chromeos/cryptohome/cryptohome_util.h" | 73 #include "chromeos/cryptohome/cryptohome_util.h" |
75 #include "chromeos/dbus/cryptohome_client.h" | 74 #include "chromeos/dbus/cryptohome_client.h" |
76 #include "chromeos/dbus/dbus_method_call_status.h" | 75 #include "chromeos/dbus/dbus_method_call_status.h" |
77 #include "chromeos/dbus/dbus_thread_manager.h" | 76 #include "chromeos/dbus/dbus_thread_manager.h" |
78 #include "chromeos/dbus/session_manager_client.h" | 77 #include "chromeos/dbus/session_manager_client.h" |
| 78 #include "chromeos/login/auth/user_context.h" |
79 #include "chromeos/settings/cros_settings_names.h" | 79 #include "chromeos/settings/cros_settings_names.h" |
80 #include "components/signin/core/browser/signin_manager.h" | 80 #include "components/signin/core/browser/signin_manager.h" |
81 #include "content/public/browser/browser_thread.h" | 81 #include "content/public/browser/browser_thread.h" |
82 #include "content/public/browser/notification_service.h" | 82 #include "content/public/browser/notification_service.h" |
83 #include "google_apis/gaia/gaia_auth_consumer.h" | 83 #include "google_apis/gaia/gaia_auth_consumer.h" |
84 #include "net/base/network_change_notifier.h" | 84 #include "net/base/network_change_notifier.h" |
85 #include "net/url_request/url_request_context.h" | 85 #include "net/url_request/url_request_context.h" |
86 #include "net/url_request/url_request_context_getter.h" | 86 #include "net/url_request/url_request_context_getter.h" |
87 #include "url/gurl.h" | 87 #include "url/gurl.h" |
88 | 88 |
(...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
462 CrosSettings* cros_settings = CrosSettings::Get(); | 462 CrosSettings* cros_settings = CrosSettings::Get(); |
463 bool allow_new_user = false; | 463 bool allow_new_user = false; |
464 cros_settings->GetBoolean(kAccountsPrefAllowNewUser, &allow_new_user); | 464 cros_settings->GetBoolean(kAccountsPrefAllowNewUser, &allow_new_user); |
465 if (allow_new_user) | 465 if (allow_new_user) |
466 return true; | 466 return true; |
467 return cros_settings->FindEmailInList( | 467 return cros_settings->FindEmailInList( |
468 kAccountsPrefUsers, username, wildcard_match); | 468 kAccountsPrefUsers, username, wildcard_match); |
469 } | 469 } |
470 | 470 |
471 } // namespace chromeos | 471 } // namespace chromeos |
OLD | NEW |