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

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

Issue 10207005: Update new file containing ppapi switch. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 8 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 #include "net/cookies/cookie_monster.h" 77 #include "net/cookies/cookie_monster.h"
78 #include "net/cookies/cookie_store.h" 78 #include "net/cookies/cookie_store.h"
79 #include "net/http/http_auth_cache.h" 79 #include "net/http/http_auth_cache.h"
80 #include "net/http/http_network_session.h" 80 #include "net/http/http_network_session.h"
81 #include "net/http/http_transaction_factory.h" 81 #include "net/http/http_transaction_factory.h"
82 #include "net/url_request/url_request_context.h" 82 #include "net/url_request/url_request_context.h"
83 #include "net/url_request/url_request_context_getter.h" 83 #include "net/url_request/url_request_context_getter.h"
84 #include "ui/base/ui_base_switches.h" 84 #include "ui/base/ui_base_switches.h"
85 #include "ui/gfx/compositor/compositor_switches.h" 85 #include "ui/gfx/compositor/compositor_switches.h"
86 #include "ui/gfx/gl/gl_switches.h" 86 #include "ui/gfx/gl/gl_switches.h"
87 #include "webkit/plugins/plugin_switches.h"
87 88
88 using content::BrowserThread; 89 using content::BrowserThread;
89 90
90 namespace chromeos { 91 namespace chromeos {
91 92
92 namespace { 93 namespace {
93 94
94 // OAuth token verification retry count. 95 // OAuth token verification retry count.
95 const int kMaxOAuthTokenVerificationAttemptCount = 5; 96 const int kMaxOAuthTokenVerificationAttemptCount = 5;
96 // OAuth token verification retry delay. 97 // OAuth token verification retry delay.
(...skipping 1348 matching lines...) Expand 10 before | Expand all | Expand 10 after
1445 bool LoginUtils::IsWhitelisted(const std::string& username) { 1446 bool LoginUtils::IsWhitelisted(const std::string& username) {
1446 CrosSettings* cros_settings = CrosSettings::Get(); 1447 CrosSettings* cros_settings = CrosSettings::Get();
1447 bool allow_new_user = false; 1448 bool allow_new_user = false;
1448 cros_settings->GetBoolean(kAccountsPrefAllowNewUser, &allow_new_user); 1449 cros_settings->GetBoolean(kAccountsPrefAllowNewUser, &allow_new_user);
1449 if (allow_new_user) 1450 if (allow_new_user)
1450 return true; 1451 return true;
1451 return cros_settings->FindEmailInList(kAccountsPrefUsers, username); 1452 return cros_settings->FindEmailInList(kAccountsPrefUsers, username);
1452 } 1453 }
1453 1454
1454 } // namespace chromeos 1455 } // namespace chromeos
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698