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