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

Unified Diff: chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.cc

Issue 1012083002: Resolve new GAIA flow's infinite loop. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Clear storage partition in ProfileHelper::ClearSigninProfile. Created 5 years, 9 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/chromeos/login/gaia_screen_handler.cc
diff --git a/chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.cc b/chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.cc
index 5d72124298f48283832b7f02f6a822e7f1555288..fdef203706e2684c5de46f5df95df6ba3314b32b 100644
--- a/chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.cc
+++ b/chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.cc
@@ -648,8 +648,9 @@ void GaiaScreenHandler::StartClearingCookies(
profile_helper->GetSigninProfile());
profile_helper->ClearSigninProfile(
base::Bind(&GaiaScreenHandler::OnCookiesCleared,
- weak_factory_.GetWeakPtr(),
- on_clear_callback));
+ weak_factory_.GetWeakPtr(), on_clear_callback),
+ StartupUtils::IsWebviewSigninEnabled() ? web_ui()->GetWebContents()
+ : nullptr);
}
void GaiaScreenHandler::OnCookiesCleared(

Powered by Google App Engine
This is Rietveld 408576698