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 <vector> | 8 #include <vector> |
9 | 9 |
10 #include "ash/ash_switches.h" | 10 #include "ash/ash_switches.h" |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 #include "net/base/network_change_notifier.h" | 78 #include "net/base/network_change_notifier.h" |
79 #include "net/cookies/cookie_monster.h" | 79 #include "net/cookies/cookie_monster.h" |
80 #include "net/cookies/cookie_store.h" | 80 #include "net/cookies/cookie_store.h" |
81 #include "net/http/http_auth_cache.h" | 81 #include "net/http/http_auth_cache.h" |
82 #include "net/http/http_network_session.h" | 82 #include "net/http/http_network_session.h" |
83 #include "net/http/http_transaction_factory.h" | 83 #include "net/http/http_transaction_factory.h" |
84 #include "net/url_request/url_request_context.h" | 84 #include "net/url_request/url_request_context.h" |
85 #include "net/url_request/url_request_context_getter.h" | 85 #include "net/url_request/url_request_context_getter.h" |
86 #include "ui/base/ui_base_switches.h" | 86 #include "ui/base/ui_base_switches.h" |
87 #include "ui/compositor/compositor_switches.h" | 87 #include "ui/compositor/compositor_switches.h" |
88 #include "ui/gfx/gl/gl_switches.h" | 88 #include "ui/gl/gl_switches.h" |
89 #include "webkit/plugins/plugin_switches.h" | 89 #include "webkit/plugins/plugin_switches.h" |
90 | 90 |
91 using content::BrowserThread; | 91 using content::BrowserThread; |
92 | 92 |
93 namespace chromeos { | 93 namespace chromeos { |
94 | 94 |
95 namespace { | 95 namespace { |
96 | 96 |
97 // OAuth token verification retry count. | 97 // OAuth token verification retry count. |
98 const int kMaxOAuthTokenVerificationAttemptCount = 5; | 98 const int kMaxOAuthTokenVerificationAttemptCount = 5; |
(...skipping 1354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1453 bool LoginUtils::IsWhitelisted(const std::string& username) { | 1453 bool LoginUtils::IsWhitelisted(const std::string& username) { |
1454 CrosSettings* cros_settings = CrosSettings::Get(); | 1454 CrosSettings* cros_settings = CrosSettings::Get(); |
1455 bool allow_new_user = false; | 1455 bool allow_new_user = false; |
1456 cros_settings->GetBoolean(kAccountsPrefAllowNewUser, &allow_new_user); | 1456 cros_settings->GetBoolean(kAccountsPrefAllowNewUser, &allow_new_user); |
1457 if (allow_new_user) | 1457 if (allow_new_user) |
1458 return true; | 1458 return true; |
1459 return cros_settings->FindEmailInList(kAccountsPrefUsers, username); | 1459 return cros_settings->FindEmailInList(kAccountsPrefUsers, username); |
1460 } | 1460 } |
1461 | 1461 |
1462 } // namespace chromeos | 1462 } // namespace chromeos |
OLD | NEW |