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_ |