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

Unified Diff: chrome/browser/ui/webui/options/sync_options_handler.h

Issue 1421893005: Settings Rewrite: Fork SyncSetupHandler for MD-Settings (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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/options/sync_options_handler.h
diff --git a/chrome/browser/ui/webui/options/sync_options_handler.h b/chrome/browser/ui/webui/options/sync_options_handler.h
new file mode 100644
index 0000000000000000000000000000000000000000..c5fefc9286b398a5109aadf9af0c5c8f5df82ac0
--- /dev/null
+++ b/chrome/browser/ui/webui/options/sync_options_handler.h
@@ -0,0 +1,29 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_SYNC_OPTIONS_HANDLER_H_
+#define CHROME_BROWSER_UI_WEBUI_OPTIONS_SYNC_OPTIONS_HANDLER_H_
+
+#include "base/macros.h"
+#include "chrome/browser/ui/webui/options/options_ui.h"
+#include "chrome/browser/ui/webui/sync_setup_handler.h"
+
+// Tiny class that delegates to the common SyncSetupHandler used by both
+// old Options and new MD Settings.
+class SyncOptionsHandler : public options::OptionsPageUIHandler {
+ public:
+ explicit SyncOptionsHandler(content::WebUI* web_ui);
+ ~SyncOptionsHandler() override;
+
+ // OptionsPageUIHandler implementation.
+ void GetLocalizedValues(base::DictionaryValue* localized_strings) override;
+ void RegisterMessages() override;
+
+ protected:
+ SyncSetupHandler sync_setup_handler_;
+
+ DISALLOW_COPY_AND_ASSIGN(SyncOptionsHandler);
+};
+
+#endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_SYNC_OPTIONS_HANDLER_H_

Powered by Google App Engine
This is Rietveld 408576698