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

Unified Diff: chrome/browser/chromeos/login/parallel_authenticator.cc

Issue 7575030: Added a switch to let pass-through login tests skip OAuth verification part. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/chromeos/login/login_performer.cc ('k') | chrome/common/chrome_switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/login/parallel_authenticator.cc
===================================================================
--- chrome/browser/chromeos/login/parallel_authenticator.cc (revision 95419)
+++ chrome/browser/chromeos/login/parallel_authenticator.cc (working copy)
@@ -58,8 +58,11 @@
: Authenticator(consumer),
already_reported_success_(false),
checked_for_localaccount_(false),
- using_oauth_(CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kWebUIGaiaLogin)) {
+ using_oauth_(
+ CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kWebUIGaiaLogin) &&
+ !CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kSkipOAuthLogin)) {
CHECK(chromeos::CrosLibrary::Get()->EnsureLoaded());
// If not already owned, this is a no-op. If it is, this loads the owner's
// public key off of disk.
« no previous file with comments | « chrome/browser/chromeos/login/login_performer.cc ('k') | chrome/common/chrome_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698