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

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

Issue 6353007: ExistingUserController is used for login under automation tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed browsertests Created 9 years, 11 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
Index: chrome/browser/chromeos/login/existing_user_controller.cc
diff --git a/chrome/browser/chromeos/login/existing_user_controller.cc b/chrome/browser/chromeos/login/existing_user_controller.cc
index 05956866583a615bddb2a9b4ea5303ee85f599af..d6bb6eac067327fa25f83b582edc17ae8e5dd145 100644
--- a/chrome/browser/chromeos/login/existing_user_controller.cc
+++ b/chrome/browser/chromeos/login/existing_user_controller.cc
@@ -543,9 +543,13 @@ void ExistingUserController::OnLoginSuccess(
LoginPerformer* performer = login_performer_.release();
performer = NULL;
bool known_user = UserManager::Get()->IsKnownUser(username);
+ bool login_only =
+ CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
+ switches::kLoginScreen) == WizardController::kLoginScreenName;
AppendStartUrlToCmdline();
controllers_[selected_view_index_]->StopThrobber();
- if (selected_view_index_ + 1 == controllers_.size() && !known_user) {
+ if (selected_view_index_ + 1 == controllers_.size() &&
+ !known_user && !login_only) {
#if defined(OFFICIAL_BUILD)
CommandLine::ForCurrentProcess()->AppendSwitchPath(
switches::kLoadExtension,
« no previous file with comments | « chrome/browser/automation/automation_provider_chromeos.cc ('k') | chrome/browser/chromeos/login/login_screen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698