OLD | NEW |
---|---|
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_FIRST_RUN_FIRST_RUN_H_ | 5 #ifndef CHROME_BROWSER_FIRST_RUN_FIRST_RUN_H_ |
6 #define CHROME_BROWSER_FIRST_RUN_FIRST_RUN_H_ | 6 #define CHROME_BROWSER_FIRST_RUN_FIRST_RUN_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
134 // Sets the kShouldShowWelcomePage local state pref so that the browser | 134 // Sets the kShouldShowWelcomePage local state pref so that the browser |
135 // loads the welcome tab once the message loop gets going. Returns false | 135 // loads the welcome tab once the message loop gets going. Returns false |
136 // if the pref could not be set. | 136 // if the pref could not be set. |
137 static bool SetShowWelcomePagePref(); | 137 static bool SetShowWelcomePagePref(); |
138 | 138 |
139 // Sets the kAutofillPersonalDataManagerFirstRun local state pref so that the | 139 // Sets the kAutofillPersonalDataManagerFirstRun local state pref so that the |
140 // browser loads PersonalDataManager once the main message loop gets going. | 140 // browser loads PersonalDataManager once the main message loop gets going. |
141 // Returns false if the pref could not be set. | 141 // Returns false if the pref could not be set. |
142 static bool SetPersonalDataManagerFirstRunPref(); | 142 static bool SetPersonalDataManagerFirstRunPref(); |
143 | 143 |
144 // True if special circumstances should prevent the search engine ballot from | |
145 // being shown. | |
146 static bool SearchEngineSelectorRestricted(); | |
Avi (use Gerrit)
2011/05/04 20:13:06
Naming not obvious. Please rename to clarify.
Miranda Callahan
2011/05/04 20:15:31
Done.
| |
147 | |
144 private: | 148 private: |
145 friend class FirstRunTest; | 149 friend class FirstRunTest; |
146 FRIEND_TEST_ALL_PREFIXES(Toolbar5ImporterTest, BookmarkParse); | 150 FRIEND_TEST_ALL_PREFIXES(Toolbar5ImporterTest, BookmarkParse); |
147 | 151 |
148 #if defined(OS_WIN) | 152 #if defined(OS_WIN) |
149 // Writes the EULA to a temporary file, returned in |*eula_path|, and returns | 153 // Writes the EULA to a temporary file, returned in |*eula_path|, and returns |
150 // true if successful. | 154 // true if successful. |
151 static bool WriteEULAtoTempFile(FilePath* eula_path); | 155 static bool WriteEULAtoTempFile(FilePath* eula_path); |
152 | 156 |
153 // Launches the setup exe with the given parameter/value on the command-line, | 157 // Launches the setup exe with the given parameter/value on the command-line, |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
193 }; | 197 }; |
194 | 198 |
195 // This variable should only be accessed through IsChromeFirstRun(). | 199 // This variable should only be accessed through IsChromeFirstRun(). |
196 static FirstRunState first_run_; | 200 static FirstRunState first_run_; |
197 | 201 |
198 // This class is for scoping purposes. | 202 // This class is for scoping purposes. |
199 DISALLOW_IMPLICIT_CONSTRUCTORS(FirstRun); | 203 DISALLOW_IMPLICIT_CONSTRUCTORS(FirstRun); |
200 }; | 204 }; |
201 | 205 |
202 #endif // CHROME_BROWSER_FIRST_RUN_FIRST_RUN_H_ | 206 #endif // CHROME_BROWSER_FIRST_RUN_FIRST_RUN_H_ |
OLD | NEW |