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

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

Issue 2771113003: Use the same browser instance in the sync confirmation dialog. (Closed)
Patch Set: Fix compile Created 3 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/signin/signin_error_handler.cc
diff --git a/chrome/browser/ui/webui/signin/signin_error_handler.cc b/chrome/browser/ui/webui/signin/signin_error_handler.cc
index 4680527565821f724dd384e88f35ae4aac497d4a..bf606bcfca24819857a84a0877fc59e527bd5e33 100644
--- a/chrome/browser/ui/webui/signin/signin_error_handler.cc
+++ b/chrome/browser/ui/webui/signin/signin_error_handler.cc
@@ -70,7 +70,8 @@ void SigninErrorHandler::HandleInitializedWithSize(
if (duplicate_profile_path_.empty())
CallJavascriptFunction("signin.error.removeSwitchButton");
- signin::SetInitializedModalHeight(web_ui(), args);
+ signin::SetInitializedModalHeight(signin::GetDesktopBrowser(web_ui()),
+ web_ui(), args);
// After the dialog is shown, some platforms might have an element focused.
// To be consistent, clear the focused element on all platforms.

Powered by Google App Engine
This is Rietveld 408576698