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

Side by Side Diff: chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc

Issue 2298073003: Better access to offline login flow from user pods (Closed)
Patch Set: Created 4 years, 3 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
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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/ui/webui/chromeos/login/signin_screen_handler.h" 5 #include "chrome/browser/ui/webui/chromeos/login/signin_screen_handler.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <vector> 10 #include <vector>
(...skipping 1090 matching lines...) Expand 10 before | Expand all | Expand 10 after
1101 if (!delegate_) 1101 if (!delegate_)
1102 return; 1102 return;
1103 1103
1104 UserContext context(user_manager::USER_TYPE_PUBLIC_ACCOUNT, account_id); 1104 UserContext context(user_manager::USER_TYPE_PUBLIC_ACCOUNT, account_id);
1105 context.SetPublicSessionLocale(locale), 1105 context.SetPublicSessionLocale(locale),
1106 context.SetPublicSessionInputMethod(input_method); 1106 context.SetPublicSessionInputMethod(input_method);
1107 delegate_->Login(context, SigninSpecifics()); 1107 delegate_->Login(context, SigninSpecifics());
1108 } 1108 }
1109 1109
1110 void SigninScreenHandler::HandleOfflineLogin(const base::ListValue* args) { 1110 void SigninScreenHandler::HandleOfflineLogin(const base::ListValue* args) {
1111 if (!delegate_ || delegate_->IsShowUsers()) { 1111 if (!delegate_) {
1112 NOTREACHED(); 1112 NOTREACHED();
1113 return; 1113 return;
1114 } 1114 }
1115 std::string email; 1115 std::string email;
1116 args->GetString(0, &email); 1116 args->GetString(0, &email);
1117 1117
1118 gaia_screen_handler_->set_populated_email(email); 1118 gaia_screen_handler_->set_populated_email(email);
1119 gaia_screen_handler_->LoadAuthExtension(true /* force */, true /* offline */); 1119 gaia_screen_handler_->LoadAuthExtension(true /* force */, true /* offline */);
1120 UpdateUIState(UI_STATE_GAIA_SIGNIN, nullptr); 1120 UpdateUIState(UI_STATE_GAIA_SIGNIN, nullptr);
1121 } 1121 }
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after
1501 } 1501 }
1502 1502
1503 void SigninScreenHandler::OnFeedbackFinished() { 1503 void SigninScreenHandler::OnFeedbackFinished() {
1504 CallJS("login.UnrecoverableCryptohomeErrorScreen.resumeAfterFeedbackUI"); 1504 CallJS("login.UnrecoverableCryptohomeErrorScreen.resumeAfterFeedbackUI");
1505 1505
1506 // Recreate user's cryptohome after the feedback is attempted. 1506 // Recreate user's cryptohome after the feedback is attempted.
1507 HandleResyncUserData(); 1507 HandleResyncUserData();
1508 } 1508 }
1509 1509
1510 } // namespace chromeos 1510 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698