| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |