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

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

Issue 674273002: Cleanup: Remove unneeded chrome/common/pref_names.h includes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 1 month 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
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 <set> 8 #include <set>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 #include "chrome/browser/profiles/profile.h" 62 #include "chrome/browser/profiles/profile.h"
63 #include "chrome/browser/profiles/profile_manager.h" 63 #include "chrome/browser/profiles/profile_manager.h"
64 #include "chrome/browser/rlz/rlz.h" 64 #include "chrome/browser/rlz/rlz.h"
65 #include "chrome/browser/signin/signin_manager_factory.h" 65 #include "chrome/browser/signin/signin_manager_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/app_list/start_page_service.h" 68 #include "chrome/browser/ui/app_list/start_page_service.h"
69 #include "chrome/browser/ui/startup/startup_browser_creator.h" 69 #include "chrome/browser/ui/startup/startup_browser_creator.h"
70 #include "chrome/common/chrome_switches.h" 70 #include "chrome/common/chrome_switches.h"
71 #include "chrome/common/logging_chrome.h" 71 #include "chrome/common/logging_chrome.h"
72 #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"
79 #include "chromeos/login/auth/user_context.h" 78 #include "chromeos/login/auth/user_context.h"
80 #include "chromeos/settings/cros_settings_names.h" 79 #include "chromeos/settings/cros_settings_names.h"
81 #include "components/signin/core/browser/signin_manager.h" 80 #include "components/signin/core/browser/signin_manager.h"
82 #include "components/user_manager/user.h" 81 #include "components/user_manager/user.h"
(...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after
506 CrosSettings* cros_settings = CrosSettings::Get(); 505 CrosSettings* cros_settings = CrosSettings::Get();
507 bool allow_new_user = false; 506 bool allow_new_user = false;
508 cros_settings->GetBoolean(kAccountsPrefAllowNewUser, &allow_new_user); 507 cros_settings->GetBoolean(kAccountsPrefAllowNewUser, &allow_new_user);
509 if (allow_new_user) 508 if (allow_new_user)
510 return true; 509 return true;
511 return cros_settings->FindEmailInList( 510 return cros_settings->FindEmailInList(
512 kAccountsPrefUsers, username, wildcard_match); 511 kAccountsPrefUsers, username, wildcard_match);
513 } 512 }
514 513
515 } // namespace chromeos 514 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698