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

Unified Diff: chrome/browser/ui/webui/signin/signin_supervised_user_import_handler.cc

Issue 1878263002: Unittests for signin_supervised_user_import_handler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed Roger's comment Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/webui/signin/signin_supervised_user_import_handler.cc
diff --git a/chrome/browser/ui/webui/signin/signin_supervised_user_import_handler.cc b/chrome/browser/ui/webui/signin/signin_supervised_user_import_handler.cc
index 9d3f51d6beff14d1e0679ea93f972051dcc1f30a..036349c56e5770e409ad522df20ce11aa3cab033 100644
--- a/chrome/browser/ui/webui/signin/signin_supervised_user_import_handler.cc
+++ b/chrome/browser/ui/webui/signin/signin_supervised_user_import_handler.cc
@@ -120,8 +120,10 @@ void SigninSupervisedUserImportHandler::LoadCustodianProfileCallback(
case Profile::CREATE_STATUS_INITIALIZED: {
// We are only interested in Profile::CREATE_STATUS_INITIALIZED when
// everything is ready.
- if (profile->IsSupervised())
+ if (profile->IsSupervised()) {
+ webui_callback_id_.clear();
return;
+ }
if (!IsAccountConnected(profile) || HasAuthError(profile)) {
RejectCallback(GetAuthErorrMessage());

Powered by Google App Engine
This is Rietveld 408576698