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

Side by Side Diff: chrome/browser/ui/webui/options/sync_setup_handler.h

Issue 7193031: Move UI specific implementation from ProfileSyncService to SyncSetupFlowHandler. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_SYNC_SETUP_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_SYNC_SETUP_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_SYNC_SETUP_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_SYNC_SETUP_HANDLER_H_
7 7
8 #include "chrome/browser/sync/sync_setup_flow_handler.h" 8 #include "chrome/browser/sync/sync_setup_flow_handler.h"
9 #include "chrome/browser/ui/webui/options/options_ui.h" 9 #include "chrome/browser/ui/webui/options/options_ui.h"
10 10
(...skipping 13 matching lines...) Expand all
24 // SyncSetupFlowHandler implementation. 24 // SyncSetupFlowHandler implementation.
25 virtual void ShowGaiaLogin(const DictionaryValue& args); 25 virtual void ShowGaiaLogin(const DictionaryValue& args);
26 virtual void ShowGaiaSuccessAndClose(); 26 virtual void ShowGaiaSuccessAndClose();
27 virtual void ShowGaiaSuccessAndSettingUp(); 27 virtual void ShowGaiaSuccessAndSettingUp();
28 virtual void ShowConfigure(const DictionaryValue& args); 28 virtual void ShowConfigure(const DictionaryValue& args);
29 virtual void ShowPassphraseEntry(const DictionaryValue& args); 29 virtual void ShowPassphraseEntry(const DictionaryValue& args);
30 virtual void ShowSettingUp(); 30 virtual void ShowSettingUp();
31 virtual void ShowSetupDone(const std::wstring& user); 31 virtual void ShowSetupDone(const std::wstring& user);
32 virtual void SetFlow(SyncSetupFlow* flow); 32 virtual void SetFlow(SyncSetupFlow* flow);
33 virtual void Focus(); 33 virtual void Focus();
34 virtual void ShowSyncSetup(Profile* profile);
34 35
35 protected: 36 protected:
36 FRIEND_TEST_ALL_PREFIXES(SyncSetupWizardTest, InitialStepLogin); 37 FRIEND_TEST_ALL_PREFIXES(SyncSetupWizardTest, InitialStepLogin);
37 FRIEND_TEST_ALL_PREFIXES(SyncSetupWizardTest, ChooseDataTypesSetsPrefs); 38 FRIEND_TEST_ALL_PREFIXES(SyncSetupWizardTest, ChooseDataTypesSetsPrefs);
38 FRIEND_TEST_ALL_PREFIXES(SyncSetupWizardTest, DialogCancelled); 39 FRIEND_TEST_ALL_PREFIXES(SyncSetupWizardTest, DialogCancelled);
39 FRIEND_TEST_ALL_PREFIXES(SyncSetupWizardTest, InvalidTransitions); 40 FRIEND_TEST_ALL_PREFIXES(SyncSetupWizardTest, InvalidTransitions);
40 FRIEND_TEST_ALL_PREFIXES(SyncSetupWizardTest, FullSuccessfulRunSetsPref); 41 FRIEND_TEST_ALL_PREFIXES(SyncSetupWizardTest, FullSuccessfulRunSetsPref);
41 FRIEND_TEST_ALL_PREFIXES(SyncSetupWizardTest, AbortedByPendingClear); 42 FRIEND_TEST_ALL_PREFIXES(SyncSetupWizardTest, AbortedByPendingClear);
42 FRIEND_TEST_ALL_PREFIXES(SyncSetupWizardTest, DiscreteRunGaiaLogin); 43 FRIEND_TEST_ALL_PREFIXES(SyncSetupWizardTest, DiscreteRunGaiaLogin);
43 FRIEND_TEST_ALL_PREFIXES(SyncSetupWizardTest, DiscreteRunChooseDataTypes); 44 FRIEND_TEST_ALL_PREFIXES(SyncSetupWizardTest, DiscreteRunChooseDataTypes);
(...skipping 15 matching lines...) Expand all
59 SyncSetupFlow* flow() { return flow_; } 60 SyncSetupFlow* flow() { return flow_; }
60 61
61 private: 62 private:
62 // Weak reference. 63 // Weak reference.
63 SyncSetupFlow* flow_; 64 SyncSetupFlow* flow_;
64 65
65 DISALLOW_COPY_AND_ASSIGN(SyncSetupHandler); 66 DISALLOW_COPY_AND_ASSIGN(SyncSetupHandler);
66 }; 67 };
67 68
68 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_SYNC_SETUP_HANDLER_H_ 69 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_SYNC_SETUP_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698