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

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

Issue 8689006: Create a field test for sync sign in promo strings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: small typo spotted by tmccoy Created 9 years 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
« no previous file with comments | « chrome/browser/ui/webui/sync_promo_ui.cc ('k') | chrome/browser/ui/webui/sync_setup_handler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_SYNC_SETUP_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_SYNC_SETUP_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_SYNC_SETUP_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_SYNC_SETUP_HANDLER_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "chrome/browser/net/gaia/gaia_oauth_consumer.h" 9 #include "chrome/browser/net/gaia/gaia_oauth_consumer.h"
10 #include "chrome/browser/net/gaia/gaia_oauth_fetcher.h" 10 #include "chrome/browser/net/gaia/gaia_oauth_fetcher.h"
(...skipping 28 matching lines...) Expand all
39 virtual void ShowSetupDone(const string16& user) OVERRIDE; 39 virtual void ShowSetupDone(const string16& user) OVERRIDE;
40 virtual void SetFlow(SyncSetupFlow* flow) OVERRIDE; 40 virtual void SetFlow(SyncSetupFlow* flow) OVERRIDE;
41 virtual void Focus() OVERRIDE; 41 virtual void Focus() OVERRIDE;
42 42
43 // GaiaOAuthConsumer implementation. 43 // GaiaOAuthConsumer implementation.
44 virtual void OnGetOAuthTokenSuccess(const std::string& oauth_token) OVERRIDE; 44 virtual void OnGetOAuthTokenSuccess(const std::string& oauth_token) OVERRIDE;
45 virtual void OnGetOAuthTokenFailure( 45 virtual void OnGetOAuthTokenFailure(
46 const GoogleServiceAuthError& error) OVERRIDE; 46 const GoogleServiceAuthError& error) OVERRIDE;
47 47
48 static void GetStaticLocalizedValues( 48 static void GetStaticLocalizedValues(
49 base::DictionaryValue* localized_strings); 49 base::DictionaryValue* localized_strings,
50 WebUI* web_ui);
50 51
51 // Initializes the sync setup flow and shows the setup UI. 52 // Initializes the sync setup flow and shows the setup UI.
52 void OpenSyncSetup(); 53 void OpenSyncSetup();
53 54
54 // Terminates the sync setup flow. 55 // Terminates the sync setup flow.
55 void CloseSyncSetup(); 56 void CloseSyncSetup();
56 57
57 protected: 58 protected:
58 FRIEND_TEST_ALL_PREFIXES(SyncSetupWizardTest, InitialStepLogin); 59 FRIEND_TEST_ALL_PREFIXES(SyncSetupWizardTest, InitialStepLogin);
59 FRIEND_TEST_ALL_PREFIXES(SyncSetupWizardTest, ChooseDataTypesSetsPrefs); 60 FRIEND_TEST_ALL_PREFIXES(SyncSetupWizardTest, ChooseDataTypesSetsPrefs);
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 // Weak reference. 104 // Weak reference.
104 SyncSetupFlow* flow_; 105 SyncSetupFlow* flow_;
105 scoped_ptr<GaiaOAuthFetcher> oauth_login_; 106 scoped_ptr<GaiaOAuthFetcher> oauth_login_;
106 // Weak reference to the profile manager. 107 // Weak reference to the profile manager.
107 ProfileManager* const profile_manager_; 108 ProfileManager* const profile_manager_;
108 109
109 DISALLOW_COPY_AND_ASSIGN(SyncSetupHandler); 110 DISALLOW_COPY_AND_ASSIGN(SyncSetupHandler);
110 }; 111 };
111 112
112 #endif // CHROME_BROWSER_UI_WEBUI_SYNC_SETUP_HANDLER_H_ 113 #endif // CHROME_BROWSER_UI_WEBUI_SYNC_SETUP_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/sync_promo_ui.cc ('k') | chrome/browser/ui/webui/sync_setup_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698