OLD | NEW |
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_FIRST_RUN_H_ | 5 #ifndef CHROME_BROWSER_FIRST_RUN_H_ |
6 #define CHROME_BROWSER_FIRST_RUN_H_ | 6 #define CHROME_BROWSER_FIRST_RUN_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 26 matching lines...) Expand all Loading... |
37 OEMBUBBLE, // Smaller bubble for OEM builds | 37 OEMBUBBLE, // Smaller bubble for OEM builds |
38 MINIMALBUBBLE // Minimal bubble shown after search engine dialog | 38 MINIMALBUBBLE // Minimal bubble shown after search engine dialog |
39 } BubbleType; | 39 } BubbleType; |
40 // See ProcessMasterPreferences for more info about this structure. | 40 // See ProcessMasterPreferences for more info about this structure. |
41 struct MasterPrefs { | 41 struct MasterPrefs { |
42 int ping_delay; | 42 int ping_delay; |
43 bool homepage_defined; | 43 bool homepage_defined; |
44 int do_import_items; | 44 int do_import_items; |
45 int dont_import_items; | 45 int dont_import_items; |
46 bool run_search_engine_experiment; | 46 bool run_search_engine_experiment; |
| 47 bool randomize_search_engine_experiment; |
47 std::vector<GURL> new_tabs; | 48 std::vector<GURL> new_tabs; |
48 std::vector<GURL> bookmarks; | 49 std::vector<GURL> bookmarks; |
49 }; | 50 }; |
50 #if defined(OS_WIN) | 51 #if defined(OS_WIN) |
51 // Creates the desktop shortcut to chrome for the current user. Returns | 52 // Creates the desktop shortcut to chrome for the current user. Returns |
52 // false if it fails. It will overwrite the shortcut if it exists. | 53 // false if it fails. It will overwrite the shortcut if it exists. |
53 static bool CreateChromeDesktopShortcut(); | 54 static bool CreateChromeDesktopShortcut(); |
54 // Creates the quick launch shortcut to chrome for the current user. Returns | 55 // Creates the quick launch shortcut to chrome for the current user. Returns |
55 // false if it fails. It will overwrite the shortcut if it exists. | 56 // false if it fails. It will overwrite the shortcut if it exists. |
56 static bool CreateChromeQuickLaunchShortcut(); | 57 static bool CreateChromeQuickLaunchShortcut(); |
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
255 // |process_singleton| is used to lock the handling of CopyData messages | 256 // |process_singleton| is used to lock the handling of CopyData messages |
256 // while the First Run UI is visible. | 257 // while the First Run UI is visible. |
257 // |homepage_defined| true indicates that homepage is defined in master | 258 // |homepage_defined| true indicates that homepage is defined in master |
258 // preferences and should not be imported from another browser. | 259 // preferences and should not be imported from another browser. |
259 // |import_items| specifies the items to import, specified in master | 260 // |import_items| specifies the items to import, specified in master |
260 // preferences and will override default behavior of importer. | 261 // preferences and will override default behavior of importer. |
261 // |dont_import_items| specifies the items *not* to import, specified in master | 262 // |dont_import_items| specifies the items *not* to import, specified in master |
262 // preferences and will override default behavior of importer. | 263 // preferences and will override default behavior of importer. |
263 // |search_engine_experiment| indicates whether the experimental search engine | 264 // |search_engine_experiment| indicates whether the experimental search engine |
264 // window should be shown. | 265 // window should be shown. |
| 266 // |randomize_search_engine_experiment| is true if the logos in the search |
| 267 // engine window should be shown in randomized order. |
265 // Returns true if the user clicked "Start", false if the user pressed "Cancel" | 268 // Returns true if the user clicked "Start", false if the user pressed "Cancel" |
266 // or closed the dialog. | 269 // or closed the dialog. |
267 bool OpenFirstRunDialog(Profile* profile, | 270 bool OpenFirstRunDialog(Profile* profile, |
268 bool homepage_defined, | 271 bool homepage_defined, |
269 int import_items, | 272 int import_items, |
270 int dont_import_items, | 273 int dont_import_items, |
271 bool search_engine_experiment, | 274 bool search_engine_experiment, |
| 275 bool randomize_search_engine_experiment, |
272 ProcessSingleton* process_singleton); | 276 ProcessSingleton* process_singleton); |
273 | 277 |
274 #endif // CHROME_BROWSER_FIRST_RUN_H_ | 278 #endif // CHROME_BROWSER_FIRST_RUN_H_ |
OLD | NEW |