| 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);
|
| };
|
|
|
|
|