diff options
author | dantasse@chromium.org <dantasse@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-31 20:49:04 +0000 |
---|---|---|
committer | dantasse@chromium.org <dantasse@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-31 20:49:04 +0000 |
commit | a7ab833c92b6d9bd23fbd98b5650a2508ad65aba (patch) | |
tree | 6369fd571af8a8d297537056de6dd63f8a36af47 /chrome/browser/sync/sync_setup_flow.h | |
parent | 4f30638aceaf44af1d12cca32a2c39dbcca48bd9 (diff) | |
download | chromium_src-a7ab833c92b6d9bd23fbd98b5650a2508ad65aba.zip chromium_src-a7ab833c92b6d9bd23fbd98b5650a2508ad65aba.tar.gz chromium_src-a7ab833c92b6d9bd23fbd98b5650a2508ad65aba.tar.bz2 |
The "Customize Sync" dialog will let users select to sync or not sync each data type (bookmarks, preferences, etc).
The Customize Sync dialog appears if you click a button on the gaia login or the Options->Personal Stuff tab. This button only appears if you've set the --enable-sync-preferences or --enable-sync-autofill command-line flag.
On the Gaia login, the Customize Sync button grays out when you click 'sign in'. If the "customize sync" dialog is open, it closes when you click "cancel" on the Gaia login, and it accepts when you log in to Gaia.
Removed "Merge and Sync" from the login sequence. Also deleted the 'merge_allowed' parameter from DataTypeController and its subclasses.
Fixed strings so they all refer to "Google Chrome/Chromium sync" instead of "Bookmark sync".
BUG=34209,27259
TEST=none
Review URL: http://codereview.chromium.org/1134002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43256 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/sync/sync_setup_flow.h')
-rw-r--r-- | chrome/browser/sync/sync_setup_flow.h | 29 |
1 files changed, 23 insertions, 6 deletions
diff --git a/chrome/browser/sync/sync_setup_flow.h b/chrome/browser/sync/sync_setup_flow.h index 6dbc04f..12489fc 100644 --- a/chrome/browser/sync/sync_setup_flow.h +++ b/chrome/browser/sync/sync_setup_flow.h @@ -13,6 +13,9 @@ #include "chrome/browser/dom_ui/html_dialog_ui.h" #include "chrome/browser/sync/profile_sync_service.h" #include "chrome/browser/sync/sync_setup_wizard.h" +#if defined(OS_WIN) +#include "chrome/browser/views/options/customize_sync_window_view.h" +#endif #include "grit/generated_resources.h" #include "testing/gtest/include/gtest/gtest_prod.h" @@ -76,16 +79,29 @@ class SyncSetupFlow : public HtmlDialogUIDelegate { return false; } + void OnUserClickedCustomize() { + service_->OnUserClickedCustomize(); + } + + void ClickCustomizeOk() { +#if defined(OS_WIN) + CustomizeSyncWindowView::ClickOk(); +#endif + } + + void ClickCustomizeCancel() { +#if defined(OS_WIN) + CustomizeSyncWindowView::ClickCancel(); +#endif + } + + void OnUserSubmittedAuth(const std::string& username, const std::string& password, const std::string& captcha) { service_->OnUserSubmittedAuth(username, password, captcha); } - void OnUserAcceptedMergeAndSync() { - service_->OnUserAcceptedMergeAndSync(); - } - private: FRIEND_TEST(SyncSetupWizardTest, InitialStepLogin); FRIEND_TEST(SyncSetupWizardTest, InitialStepMergeAndSync); @@ -154,6 +170,9 @@ class FlowHandler : public DOMMessageHandler { virtual void RegisterMessages(); // Callbacks from the page. + void HandleUserClickedCustomize(const Value* value); + void ClickCustomizeOk(const Value* value); + void ClickCustomizeCancel(const Value* value); void HandleSubmitAuth(const Value* value); void HandleSubmitMergeAndSync(const Value* value); @@ -161,8 +180,6 @@ class FlowHandler : public DOMMessageHandler { void ShowGaiaLogin(const DictionaryValue& args); void ShowGaiaSuccessAndClose(); void ShowGaiaSuccessAndSettingUp(); - void ShowMergeAndSync(); - void ShowMergeAndSyncError(); void ShowSetupDone(const std::wstring& user); void ShowFirstTimeDone(const std::wstring& user); |