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

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: Initial upload Created 4 years 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 1099 matching lines...) Expand 10 before | Expand all | Expand 10 after
1110 if (delegate_) 1110 if (delegate_)
1111 delegate_->Login(context, SigninSpecifics()); 1111 delegate_->Login(context, SigninSpecifics());
1112 } 1112 }
1113 1113
1114 void SigninScreenHandler::HandleShowSupervisedUserCreationScreen() { 1114 void SigninScreenHandler::HandleShowSupervisedUserCreationScreen() {
1115 if (!user_manager::UserManager::Get()->AreSupervisedUsersAllowed()) { 1115 if (!user_manager::UserManager::Get()->AreSupervisedUsersAllowed()) {
1116 LOG(ERROR) << "Managed users not allowed."; 1116 LOG(ERROR) << "Managed users not allowed.";
1117 return; 1117 return;
1118 } 1118 }
1119 LoginDisplayHost::default_host()->StartWizard( 1119 LoginDisplayHost::default_host()->StartWizard(
1120 WizardController::kSupervisedUserCreationScreenName); 1120 OobeScreen::SCREEN_CREATE_SUPERVISED_USER_FLOW);
1121 } 1121 }
1122 1122
1123 void SigninScreenHandler::HandleLaunchPublicSession( 1123 void SigninScreenHandler::HandleLaunchPublicSession(
1124 const AccountId& account_id, 1124 const AccountId& account_id,
1125 const std::string& locale, 1125 const std::string& locale,
1126 const std::string& input_method) { 1126 const std::string& input_method) {
1127 if (!delegate_) 1127 if (!delegate_)
1128 return; 1128 return;
1129 1129
1130 UserContext context(user_manager::USER_TYPE_PUBLIC_ACCOUNT, account_id); 1130 UserContext context(user_manager::USER_TYPE_PUBLIC_ACCOUNT, account_id);
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after
1533 } 1533 }
1534 1534
1535 void SigninScreenHandler::OnFeedbackFinished() { 1535 void SigninScreenHandler::OnFeedbackFinished() {
1536 CallJS("login.UnrecoverableCryptohomeErrorScreen.resumeAfterFeedbackUI"); 1536 CallJS("login.UnrecoverableCryptohomeErrorScreen.resumeAfterFeedbackUI");
1537 1537
1538 // Recreate user's cryptohome after the feedback is attempted. 1538 // Recreate user's cryptohome after the feedback is attempted.
1539 HandleResyncUserData(); 1539 HandleResyncUserData();
1540 } 1540 }
1541 1541
1542 } // namespace chromeos 1542 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698