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

Unified Diff: chrome/browser/ui/webui/signin/sync_confirmation_ui.h

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/webui/signin/sync_confirmation_ui.h
diff --git a/chrome/browser/ui/webui/signin/sync_confirmation_ui.h b/chrome/browser/ui/webui/signin/sync_confirmation_ui.h
index 4c3dbed843227e288efe7f9f9f59fc978297bfff..73e67e312d8604f0994b175722f463d85a26d8af 100644
--- a/chrome/browser/ui/webui/signin/sync_confirmation_ui.h
+++ b/chrome/browser/ui/webui/signin/sync_confirmation_ui.h
@@ -16,20 +16,13 @@
class WebUI;
}
-class Browser;
-
-// WebUI controller for the sync confirmation dialog.
-//
-// Note: This controller does not set the WebUI message handler. It is
-// the responsability of the caller to pass the correct message handler.
class SyncConfirmationUI : public ui::WebDialogUI {
public:
explicit SyncConfirmationUI(content::WebUI* web_ui);
+ // Used to inject a SyncConfirmationHandler in tests.
+ SyncConfirmationUI(content::WebUI* web_ui,
+ std::unique_ptr<SyncConfirmationHandler> handler);
~SyncConfirmationUI() override {}
-
- // Initializes a SyncConfirmationHandler for |browser| and adds it to
- // |web_ui()|.
- void InitializeMessageHandlerWithBrowser(Browser* browser);
DISALLOW_COPY_AND_ASSIGN(SyncConfirmationUI);
};

Powered by Google App Engine
This is Rietveld 408576698