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

Unified Diff: chrome/browser/ui/views/profiles/signin_view_controller_delegate_views.cc

Issue 2787453002: Revert of Use the same browser instance in the sync confirmation dialog. (Closed)
Patch Set: 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/views/profiles/signin_view_controller_delegate_views.cc
diff --git a/chrome/browser/ui/views/profiles/signin_view_controller_delegate_views.cc b/chrome/browser/ui/views/profiles/signin_view_controller_delegate_views.cc
index 5971cd5f77276dcf8f20a5e67ac31fcc471e2aa1..452fd9e93381939ebdd3c4ad5d860d1b12a22a00 100644
--- a/chrome/browser/ui/views/profiles/signin_view_controller_delegate_views.cc
+++ b/chrome/browser/ui/views/profiles/signin_view_controller_delegate_views.cc
@@ -11,7 +11,6 @@
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/tabs/tab_strip_model.h"
#include "chrome/browser/ui/views/frame/browser_view.h"
-#include "chrome/browser/ui/webui/signin/sync_confirmation_ui.h"
#include "chrome/common/url_constants.h"
#include "components/constrained_window/constrained_window_views.h"
#include "components/signin/core/common/profile_management_switches.h"
@@ -185,9 +184,7 @@
Browser* browser) {
views::WebView* web_view = new views::WebView(browser->profile());
web_view->LoadInitialURL(GURL(chrome::kChromeUISyncConfirmationURL));
- SyncConfirmationUI* sync_confirmation_ui = static_cast<SyncConfirmationUI*>(
- web_view->GetWebContents()->GetWebUI()->GetController());
- sync_confirmation_ui->InitializeMessageHandlerWithBrowser(browser);
+
int dialog_preferred_height =
GetSyncConfirmationDialogPreferredHeight(browser->profile());
int max_height = browser

Powered by Google App Engine
This is Rietveld 408576698