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

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

Issue 8555006: [cros] Fix first time Guest sign in. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 21e8210e1736677300bb93684356bfbe5837b615..b0ebb8bc55895ad2ad3d24b515dd6b3adeff3f82 100644
--- a/chrome/browser/chromeos/login/existing_user_controller.cc
+++ b/chrome/browser/chromeos/login/existing_user_controller.cc
@@ -459,6 +459,11 @@ void ExistingUserController::OnOffTheRecordLoginSuccess() {
LoginUtils::Get()->CompleteOffTheRecordLogin(guest_mode_url_);
} else {
// Postpone CompleteOffTheRecordLogin until registration completion.
+ // TODO(nkostylev): Kind of hack. We have to instruct UserManager here
+ // that we're actually logged in as Guest user as we'll ask UserManager
+ // later in the code path whether we've signed in as Guest and depending
+ // on that would either show image screen or call CompleteOffTheRecordLogin.
+ UserManager::Get()->GuestUserLoggedIn();
ActivateWizard(WizardController::kRegistrationScreenName);
}
« 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