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

Unified Diff: chrome/browser/ui/webui/sync_setup_handler.h

Issue 7399015: Sync Promo: Add a way to collapse the sync promo (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address review feedback Created 9 years, 5 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/sync_setup_handler.h
diff --git a/chrome/browser/ui/webui/options/sync_setup_handler.h b/chrome/browser/ui/webui/sync_setup_handler.h
similarity index 82%
rename from chrome/browser/ui/webui/options/sync_setup_handler.h
rename to chrome/browser/ui/webui/sync_setup_handler.h
index 8b9419d601e4e6ea0f6d365e7c59465e2c9b1faf..b5bca89421a8bd310b8cecc6aa05e1e0cc4b487d 100644
--- a/chrome/browser/ui/webui/options/sync_setup_handler.h
+++ b/chrome/browser/ui/webui/sync_setup_handler.h
@@ -2,8 +2,8 @@
// 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_SETUP_HANDLER_H_
-#define CHROME_BROWSER_UI_WEBUI_OPTIONS_SYNC_SETUP_HANDLER_H_
+#ifndef CHROME_BROWSER_UI_WEBUI_SYNC_SETUP_HANDLER_H_
+#define CHROME_BROWSER_UI_WEBUI_SYNC_SETUP_HANDLER_H_
#include "chrome/browser/sync/sync_setup_flow_handler.h"
#include "chrome/browser/ui/webui/options/options_ui.h"
@@ -32,6 +32,14 @@ class SyncSetupHandler : public OptionsPageUIHandler,
virtual void SetFlow(SyncSetupFlow* flow);
virtual void Focus();
+ static void GetStaticLocalizedValues(DictionaryValue* localized_strings);
+
+ // Initializes the sync setup flow and shows the setup UI.
+ void OpenSyncSetup();
+
+ // Terminates the sync setup flow.
+ void CloseSyncSetup();
+
protected:
FRIEND_TEST_ALL_PREFIXES(SyncSetupWizardTest, InitialStepLogin);
FRIEND_TEST_ALL_PREFIXES(SyncSetupWizardTest, ChooseDataTypesSetsPrefs);
@@ -58,6 +66,10 @@ class SyncSetupHandler : public OptionsPageUIHandler,
SyncSetupFlow* flow() { return flow_; }
+ // Subclasses must implement this to show the setup UI that's appropriate
+ // for the page this is contained in.
+ virtual void ShowSetupUI() = 0;
+
private:
// Weak reference.
SyncSetupFlow* flow_;
@@ -65,4 +77,4 @@ class SyncSetupHandler : public OptionsPageUIHandler,
DISALLOW_COPY_AND_ASSIGN(SyncSetupHandler);
};
-#endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_SYNC_SETUP_HANDLER_H_
+#endif // CHROME_BROWSER_UI_WEBUI_SYNC_SETUP_HANDLER_H_

Powered by Google App Engine
This is Rietveld 408576698