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

Side by Side Diff: chrome/browser/chromeos/login/wizard_controller.h

Issue 3026006: Fixed problems with initial locale change freezing Chrome OS on the device.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_CHROMEOS_LOGIN_WIZARD_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_WIZARD_CONTROLLER_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_WIZARD_CONTROLLER_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_WIZARD_CONTROLLER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/gtest_prod_util.h" 10 #include "base/gtest_prod_util.h"
11 #include "base/scoped_ptr.h" 11 #include "base/scoped_ptr.h"
12 #include "chrome/browser/chromeos/login/screen_observer.h" 12 #include "chrome/browser/chromeos/login/screen_observer.h"
13 #include "chrome/browser/chromeos/login/string_fetcher.h"
13 #include "chrome/browser/chromeos/login/view_screen.h" 14 #include "chrome/browser/chromeos/login/view_screen.h"
14 #include "chrome/browser/chromeos/login/wizard_screen.h" 15 #include "chrome/browser/chromeos/login/wizard_screen.h"
15 #include "testing/gtest/include/gtest/gtest_prod.h" 16 #include "testing/gtest/include/gtest/gtest_prod.h"
16 17
17 class PrefService; 18 class PrefService;
18 class WizardContentsView; 19 class WizardContentsView;
19 class WizardScreen; 20 class WizardScreen;
20 21
21 namespace chromeos { 22 namespace chromeos {
22 class AccountScreen; 23 class AccountScreen;
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 void set_observer(ScreenObserver* observer) { observer_ = observer; } 98 void set_observer(ScreenObserver* observer) { observer_ = observer; }
98 99
99 // Sets partner startup customization. WizardController takes ownership 100 // Sets partner startup customization. WizardController takes ownership
100 // of the document object. 101 // of the document object.
101 void SetCustomization( 102 void SetCustomization(
102 const chromeos::StartupCustomizationDocument* customization); 103 const chromeos::StartupCustomizationDocument* customization);
103 104
104 // Registers OOBE preferences. 105 // Registers OOBE preferences.
105 static void RegisterPrefs(PrefService* local_state); 106 static void RegisterPrefs(PrefService* local_state);
106 107
108 // Applies partner services customizations.
109 void ApplyPartnerServicesCustomizations();
110
107 static const char kNetworkScreenName[]; 111 static const char kNetworkScreenName[];
108 static const char kLoginScreenName[]; 112 static const char kLoginScreenName[];
109 static const char kAccountScreenName[]; 113 static const char kAccountScreenName[];
110 static const char kUpdateScreenName[]; 114 static const char kUpdateScreenName[];
111 static const char kUserImageScreenName[]; 115 static const char kUserImageScreenName[];
112 static const char kRegistrationScreenName[]; 116 static const char kRegistrationScreenName[];
113 static const char kOutOfBoxScreenName[]; 117 static const char kOutOfBoxScreenName[];
114 static const char kTestNoScreenName[]; 118 static const char kTestNoScreenName[];
115 static const char kEulaScreenName[]; 119 static const char kEulaScreenName[];
116 120
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 193
190 // NULL by default - controller itself is observer. Mock could be assigned. 194 // NULL by default - controller itself is observer. Mock could be assigned.
191 ScreenObserver* observer_; 195 ScreenObserver* observer_;
192 196
193 // Default WizardController. 197 // Default WizardController.
194 static WizardController* default_controller_; 198 static WizardController* default_controller_;
195 199
196 // Partner startup customizations. 200 // Partner startup customizations.
197 scoped_ptr<const chromeos::StartupCustomizationDocument> customization_; 201 scoped_ptr<const chromeos::StartupCustomizationDocument> customization_;
198 202
203 // Partner services manifest fetcher.
204 scoped_ptr<StringFetcher> services_manifest_fetcher_;
205
199 FRIEND_TEST_ALL_PREFIXES(WizardControllerFlowTest, ControlFlowErrorNetwork); 206 FRIEND_TEST_ALL_PREFIXES(WizardControllerFlowTest, ControlFlowErrorNetwork);
200 FRIEND_TEST_ALL_PREFIXES(WizardControllerFlowTest, ControlFlowErrorUpdate); 207 FRIEND_TEST_ALL_PREFIXES(WizardControllerFlowTest, ControlFlowErrorUpdate);
201 FRIEND_TEST_ALL_PREFIXES(WizardControllerFlowTest, 208 FRIEND_TEST_ALL_PREFIXES(WizardControllerFlowTest,
202 ControlFlowLanguageOnLogin); 209 ControlFlowLanguageOnLogin);
203 FRIEND_TEST_ALL_PREFIXES(WizardControllerFlowTest, 210 FRIEND_TEST_ALL_PREFIXES(WizardControllerFlowTest,
204 ControlFlowLanguageOnNetwork); 211 ControlFlowLanguageOnNetwork);
205 FRIEND_TEST_ALL_PREFIXES(WizardControllerFlowTest, ControlFlowMain); 212 FRIEND_TEST_ALL_PREFIXES(WizardControllerFlowTest, ControlFlowMain);
206 FRIEND_TEST_ALL_PREFIXES(WizardControllerTest, SwitchLanguage); 213 FRIEND_TEST_ALL_PREFIXES(WizardControllerTest, SwitchLanguage);
207 friend class WizardControllerFlowTest; 214 friend class WizardControllerFlowTest;
208 215
209 DISALLOW_COPY_AND_ASSIGN(WizardController); 216 DISALLOW_COPY_AND_ASSIGN(WizardController);
210 }; 217 };
211 218
212 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WIZARD_CONTROLLER_H_ 219 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WIZARD_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698