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

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

Issue 2784823002: Reland "Use the same browser instance in the sync confirmation dialog. (Closed)
Patch Set: Rebase and fix conflicts 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 73e67e312d8604f0994b175722f463d85a26d8af..4c3dbed843227e288efe7f9f9f59fc978297bfff 100644
--- a/chrome/browser/ui/webui/signin/sync_confirmation_ui.h
+++ b/chrome/browser/ui/webui/signin/sync_confirmation_ui.h
@@ -16,14 +16,21 @@ namespace ui {
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