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

Side by Side Diff: chrome/browser/ui/webui/signin/signin_supervised_user_import_handler.cc

Issue 2552473002: Display error message when user try to open a locked supervised user profile when force-sign-in is … (Closed)
Patch Set: sky's comments 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/signin/signin_supervised_user_import_handler.h " 5 #include "chrome/browser/ui/webui/signin/signin_supervised_user_import_handler.h "
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <memory> 9 #include <memory>
10 #include <set> 10 #include <set>
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 } 132 }
133 133
134 void SigninSupervisedUserImportHandler::AuthenticateCustodian( 134 void SigninSupervisedUserImportHandler::AuthenticateCustodian(
135 const base::ListValue* args) { 135 const base::ListValue* args) {
136 CHECK_EQ(1U, args->GetSize()); 136 CHECK_EQ(1U, args->GetSize());
137 137
138 std::string email; 138 std::string email;
139 bool success = args->GetString(0, &email); 139 bool success = args->GetString(0, &email);
140 DCHECK(success); 140 DCHECK(success);
141 141
142 UserManager::ShowReauthDialog( 142 UserManagerProfileDialog::ShowReauthDialog(
143 web_ui()->GetWebContents()->GetBrowserContext(), email, 143 web_ui()->GetWebContents()->GetBrowserContext(), email,
144 signin_metrics::Reason::REASON_REAUTHENTICATION); 144 signin_metrics::Reason::REASON_REAUTHENTICATION);
145 } 145 }
146 146
147 void SigninSupervisedUserImportHandler::GetExistingSupervisedUsers( 147 void SigninSupervisedUserImportHandler::GetExistingSupervisedUsers(
148 const base::ListValue* args) { 148 const base::ListValue* args) {
149 CHECK_EQ(2U, args->GetSize()); 149 CHECK_EQ(2U, args->GetSize());
150 AssignWebUICallbackId(args); 150 AssignWebUICallbackId(args);
151 151
152 base::FilePath custodian_profile_path; 152 base::FilePath custodian_profile_path;
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 312
313 bool SigninSupervisedUserImportHandler::HasAuthError(Profile* profile) const { 313 bool SigninSupervisedUserImportHandler::HasAuthError(Profile* profile) const {
314 SigninErrorController* error_controller = 314 SigninErrorController* error_controller =
315 SigninErrorControllerFactory::GetForProfile(profile); 315 SigninErrorControllerFactory::GetForProfile(profile);
316 if (!error_controller) 316 if (!error_controller)
317 return true; 317 return true;
318 318
319 GoogleServiceAuthError::State state = error_controller->auth_error().state(); 319 GoogleServiceAuthError::State state = error_controller->auth_error().state();
320 return state != GoogleServiceAuthError::NONE; 320 return state != GoogleServiceAuthError::NONE;
321 } 321 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/signin/signin_error_ui.cc ('k') | chrome/browser/ui/webui/signin/user_manager_screen_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698