Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(606)

Side by Side Diff: chrome/browser/chromeos/login/login_utils.cc

Issue 12211105: Move remaining non-test, non-Chrome-specific Prefs code to base/prefs/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments, merge to LKGR. Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 <vector> 8 #include <vector>
9 9
10 #include "ash/ash_switches.h" 10 #include "ash/ash_switches.h"
11 #include "base/chromeos/chromeos_version.h" 11 #include "base/chromeos/chromeos_version.h"
12 #include "base/command_line.h" 12 #include "base/command_line.h"
13 #include "base/compiler_specific.h" 13 #include "base/compiler_specific.h"
14 #include "base/file_path.h" 14 #include "base/file_path.h"
15 #include "base/file_util.h" 15 #include "base/file_util.h"
16 #include "base/location.h" 16 #include "base/location.h"
17 #include "base/memory/ref_counted.h" 17 #include "base/memory/ref_counted.h"
18 #include "base/memory/scoped_ptr.h" 18 #include "base/memory/scoped_ptr.h"
19 #include "base/memory/singleton.h" 19 #include "base/memory/singleton.h"
20 #include "base/path_service.h" 20 #include "base/path_service.h"
21 #include "base/prefs/pref_service.h"
21 #include "base/prefs/public/pref_member.h" 22 #include "base/prefs/public/pref_member.h"
22 #include "base/string_util.h" 23 #include "base/string_util.h"
23 #include "base/stringprintf.h" 24 #include "base/stringprintf.h"
24 #include "base/synchronization/lock.h" 25 #include "base/synchronization/lock.h"
25 #include "base/task_runner_util.h" 26 #include "base/task_runner_util.h"
26 #include "base/threading/worker_pool.h" 27 #include "base/threading/worker_pool.h"
27 #include "base/time.h" 28 #include "base/time.h"
28 #include "base/utf_string_conversions.h" 29 #include "base/utf_string_conversions.h"
29 #include "cc/switches.h" 30 #include "cc/switches.h"
30 #include "chrome/browser/browser_process.h" 31 #include "chrome/browser/browser_process.h"
(...skipping 17 matching lines...) Expand all
48 #include "chrome/browser/extensions/extension_service.h" 49 #include "chrome/browser/extensions/extension_service.h"
49 #include "chrome/browser/first_run/first_run.h" 50 #include "chrome/browser/first_run/first_run.h"
50 #include "chrome/browser/google/google_util_chromeos.h" 51 #include "chrome/browser/google/google_util_chromeos.h"
51 #include "chrome/browser/managed_mode/managed_mode.h" 52 #include "chrome/browser/managed_mode/managed_mode.h"
52 #include "chrome/browser/net/chrome_url_request_context.h" 53 #include "chrome/browser/net/chrome_url_request_context.h"
53 #include "chrome/browser/net/preconnect.h" 54 #include "chrome/browser/net/preconnect.h"
54 #include "chrome/browser/policy/browser_policy_connector.h" 55 #include "chrome/browser/policy/browser_policy_connector.h"
55 #include "chrome/browser/policy/cloud_policy_client.h" 56 #include "chrome/browser/policy/cloud_policy_client.h"
56 #include "chrome/browser/policy/cloud_policy_service.h" 57 #include "chrome/browser/policy/cloud_policy_service.h"
57 #include "chrome/browser/policy/network_configuration_updater.h" 58 #include "chrome/browser/policy/network_configuration_updater.h"
58 #include "chrome/browser/prefs/pref_service.h"
59 #include "chrome/browser/profiles/profile.h" 59 #include "chrome/browser/profiles/profile.h"
60 #include "chrome/browser/profiles/profile_manager.h" 60 #include "chrome/browser/profiles/profile_manager.h"
61 #include "chrome/browser/rlz/rlz.h" 61 #include "chrome/browser/rlz/rlz.h"
62 #include "chrome/browser/signin/signin_manager.h" 62 #include "chrome/browser/signin/signin_manager.h"
63 #include "chrome/browser/signin/signin_manager_factory.h" 63 #include "chrome/browser/signin/signin_manager_factory.h"
64 #include "chrome/browser/signin/token_service.h" 64 #include "chrome/browser/signin/token_service.h"
65 #include "chrome/browser/signin/token_service_factory.h" 65 #include "chrome/browser/signin/token_service_factory.h"
66 #include "chrome/browser/sync/profile_sync_service.h" 66 #include "chrome/browser/sync/profile_sync_service.h"
67 #include "chrome/browser/sync/profile_sync_service_factory.h" 67 #include "chrome/browser/sync/profile_sync_service_factory.h"
68 #include "chrome/browser/ui/startup/startup_browser_creator.h" 68 #include "chrome/browser/ui/startup/startup_browser_creator.h"
(...skipping 975 matching lines...) Expand 10 before | Expand all | Expand 10 after
1044 bool LoginUtils::IsWhitelisted(const std::string& username) { 1044 bool LoginUtils::IsWhitelisted(const std::string& username) {
1045 CrosSettings* cros_settings = CrosSettings::Get(); 1045 CrosSettings* cros_settings = CrosSettings::Get();
1046 bool allow_new_user = false; 1046 bool allow_new_user = false;
1047 cros_settings->GetBoolean(kAccountsPrefAllowNewUser, &allow_new_user); 1047 cros_settings->GetBoolean(kAccountsPrefAllowNewUser, &allow_new_user);
1048 if (allow_new_user) 1048 if (allow_new_user)
1049 return true; 1049 return true;
1050 return cros_settings->FindEmailInList(kAccountsPrefUsers, username); 1050 return cros_settings->FindEmailInList(kAccountsPrefUsers, username);
1051 } 1051 }
1052 1052
1053 } // namespace chromeos 1053 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/login_performer.cc ('k') | chrome/browser/chromeos/login/login_utils_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698