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

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

Issue 2566443005: cros: Replace WizardController string constants with OobeScreen values. (Closed)
Patch Set: Address comments Created 3 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 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 1109 matching lines...) Expand 10 before | Expand all | Expand 10 after
1120 if (delegate_) 1120 if (delegate_)
1121 delegate_->Login(context, SigninSpecifics()); 1121 delegate_->Login(context, SigninSpecifics());
1122 } 1122 }
1123 1123
1124 void SigninScreenHandler::HandleShowSupervisedUserCreationScreen() { 1124 void SigninScreenHandler::HandleShowSupervisedUserCreationScreen() {
1125 if (!user_manager::UserManager::Get()->AreSupervisedUsersAllowed()) { 1125 if (!user_manager::UserManager::Get()->AreSupervisedUsersAllowed()) {
1126 LOG(ERROR) << "Managed users not allowed."; 1126 LOG(ERROR) << "Managed users not allowed.";
1127 return; 1127 return;
1128 } 1128 }
1129 LoginDisplayHost::default_host()->StartWizard( 1129 LoginDisplayHost::default_host()->StartWizard(
1130 WizardController::kSupervisedUserCreationScreenName); 1130 OobeScreen::SCREEN_CREATE_SUPERVISED_USER_FLOW);
1131 } 1131 }
1132 1132
1133 void SigninScreenHandler::HandleLaunchPublicSession( 1133 void SigninScreenHandler::HandleLaunchPublicSession(
1134 const AccountId& account_id, 1134 const AccountId& account_id,
1135 const std::string& locale, 1135 const std::string& locale,
1136 const std::string& input_method) { 1136 const std::string& input_method) {
1137 if (!delegate_) 1137 if (!delegate_)
1138 return; 1138 return;
1139 1139
1140 UserContext context(user_manager::USER_TYPE_PUBLIC_ACCOUNT, account_id); 1140 UserContext context(user_manager::USER_TYPE_PUBLIC_ACCOUNT, account_id);
(...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after
1542 } 1542 }
1543 1543
1544 void SigninScreenHandler::OnFeedbackFinished() { 1544 void SigninScreenHandler::OnFeedbackFinished() {
1545 CallJS("login.UnrecoverableCryptohomeErrorScreen.resumeAfterFeedbackUI"); 1545 CallJS("login.UnrecoverableCryptohomeErrorScreen.resumeAfterFeedbackUI");
1546 1546
1547 // Recreate user's cryptohome after the feedback is attempted. 1547 // Recreate user's cryptohome after the feedback is attempted.
1548 HandleResyncUserData(); 1548 HandleResyncUserData();
1549 } 1549 }
1550 1550
1551 } // namespace chromeos 1551 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698