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

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

Issue 10928017: Moving google_apis and GaiaClient to src/google_apis. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to head Created 8 years, 3 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"
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 #include "chrome/browser/signin/signin_manager_factory.h" 59 #include "chrome/browser/signin/signin_manager_factory.h"
60 #include "chrome/browser/signin/token_service.h" 60 #include "chrome/browser/signin/token_service.h"
61 #include "chrome/browser/signin/token_service_factory.h" 61 #include "chrome/browser/signin/token_service_factory.h"
62 #include "chrome/browser/sync/profile_sync_service.h" 62 #include "chrome/browser/sync/profile_sync_service.h"
63 #include "chrome/browser/sync/profile_sync_service_factory.h" 63 #include "chrome/browser/sync/profile_sync_service_factory.h"
64 #include "chrome/browser/ui/startup/startup_browser_creator.h" 64 #include "chrome/browser/ui/startup/startup_browser_creator.h"
65 #include "chrome/common/chrome_notification_types.h" 65 #include "chrome/common/chrome_notification_types.h"
66 #include "chrome/common/chrome_paths.h" 66 #include "chrome/common/chrome_paths.h"
67 #include "chrome/common/chrome_switches.h" 67 #include "chrome/common/chrome_switches.h"
68 #include "chrome/common/logging_chrome.h" 68 #include "chrome/common/logging_chrome.h"
69 #include "chrome/common/net/gaia/gaia_auth_consumer.h"
70 #include "chrome/common/net/gaia/gaia_urls.h"
71 #include "chrome/common/pref_names.h" 69 #include "chrome/common/pref_names.h"
72 #include "chrome/common/url_constants.h" 70 #include "chrome/common/url_constants.h"
73 #include "chromeos/chromeos_switches.h" 71 #include "chromeos/chromeos_switches.h"
74 #include "chromeos/dbus/dbus_thread_manager.h" 72 #include "chromeos/dbus/dbus_thread_manager.h"
75 #include "chromeos/dbus/session_manager_client.h" 73 #include "chromeos/dbus/session_manager_client.h"
76 #include "content/public/browser/browser_thread.h" 74 #include "content/public/browser/browser_thread.h"
77 #include "content/public/browser/notification_observer.h" 75 #include "content/public/browser/notification_observer.h"
78 #include "content/public/browser/notification_service.h" 76 #include "content/public/browser/notification_service.h"
77 #include "google_apis/gaia/gaia_auth_consumer.h"
78 #include "google_apis/gaia/gaia_urls.h"
79 #include "googleurl/src/gurl.h" 79 #include "googleurl/src/gurl.h"
80 #include "media/base/media_switches.h" 80 #include "media/base/media_switches.h"
81 #include "net/base/network_change_notifier.h" 81 #include "net/base/network_change_notifier.h"
82 #include "net/cookies/cookie_monster.h" 82 #include "net/cookies/cookie_monster.h"
83 #include "net/cookies/cookie_store.h" 83 #include "net/cookies/cookie_store.h"
84 #include "net/http/http_auth_cache.h" 84 #include "net/http/http_auth_cache.h"
85 #include "net/http/http_network_session.h" 85 #include "net/http/http_network_session.h"
86 #include "net/http/http_transaction_factory.h" 86 #include "net/http/http_transaction_factory.h"
87 #include "net/url_request/url_request_context.h" 87 #include "net/url_request/url_request_context.h"
88 #include "net/url_request/url_request_context_getter.h" 88 #include "net/url_request/url_request_context_getter.h"
(...skipping 1125 matching lines...) Expand 10 before | Expand all | Expand 10 after
1214 bool LoginUtils::IsWhitelisted(const std::string& username) { 1214 bool LoginUtils::IsWhitelisted(const std::string& username) {
1215 CrosSettings* cros_settings = CrosSettings::Get(); 1215 CrosSettings* cros_settings = CrosSettings::Get();
1216 bool allow_new_user = false; 1216 bool allow_new_user = false;
1217 cros_settings->GetBoolean(kAccountsPrefAllowNewUser, &allow_new_user); 1217 cros_settings->GetBoolean(kAccountsPrefAllowNewUser, &allow_new_user);
1218 if (allow_new_user) 1218 if (allow_new_user)
1219 return true; 1219 return true;
1220 return cros_settings->FindEmailInList(kAccountsPrefUsers, username); 1220 return cros_settings->FindEmailInList(kAccountsPrefUsers, username);
1221 } 1221 }
1222 1222
1223 } // namespace chromeos 1223 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/login_utils.h ('k') | chrome/browser/chromeos/login/login_utils_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698