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

Side by Side Diff: chrome/browser/first_run/first_run.h

Issue 9285002: Remove the first-run search engine dialog/ballot. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync and merge. Created 8 years, 11 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
« no previous file with comments | « chrome/browser/chrome_browser_main.cc ('k') | chrome/browser/first_run/first_run.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 // Sets the kShouldShowWelcomePage local state pref so that the browser 58 // Sets the kShouldShowWelcomePage local state pref so that the browser
59 // loads the welcome tab once the message loop gets going. Returns false 59 // loads the welcome tab once the message loop gets going. Returns false
60 // if the pref could not be set. 60 // if the pref could not be set.
61 bool SetShowWelcomePagePref(); 61 bool SetShowWelcomePagePref();
62 62
63 // Sets the kAutofillPersonalDataManagerFirstRun local state pref so that the 63 // Sets the kAutofillPersonalDataManagerFirstRun local state pref so that the
64 // browser loads PersonalDataManager once the main message loop gets going. 64 // browser loads PersonalDataManager once the main message loop gets going.
65 // Returns false if the pref could not be set. 65 // Returns false if the pref could not be set.
66 bool SetPersonalDataManagerFirstRunPref(); 66 bool SetPersonalDataManagerFirstRunPref();
67 67
68 // Whether the search engine selection dialog should be shown on first run.
69 bool ShouldShowSearchEngineSelector(const TemplateURLService* model);
70
71 // -- Platform-specific functions -- 68 // -- Platform-specific functions --
72 69
73 // Automatically import history and home page (and search engine, if 70 // Automatically import history and home page (and search engine, if
74 // ShouldShowSearchEngineDialog is true). 71 // ShouldShowSearchEngineDialog is true).
75 void AutoImport(Profile* profile, 72 void AutoImport(Profile* profile,
76 bool homepage_defined, 73 bool homepage_defined,
77 int import_items, 74 int import_items,
78 int dont_import_items, 75 int dont_import_items,
79 bool search_engine_experiment,
80 bool randomize_search_engine_experiment,
81 bool make_chrome_default, 76 bool make_chrome_default,
82 ProcessSingleton* process_singleton); 77 ProcessSingleton* process_singleton);
83 78
84 // Imports bookmarks and/or browser items (depending on platform support) 79 // Imports bookmarks and/or browser items (depending on platform support)
85 // in this process. This function is paired with first_run::ImportSettings(). 80 // in this process. This function is paired with first_run::ImportSettings().
86 // This function might or might not show a visible UI depending on the 81 // This function might or might not show a visible UI depending on the
87 // cmdline parameters. 82 // cmdline parameters.
88 int ImportNow(Profile* profile, const CommandLine& cmdline); 83 int ImportNow(Profile* profile, const CommandLine& cmdline);
89 84
90 // Returns the path for the master preferences file. 85 // Returns the path for the master preferences file.
(...skipping 14 matching lines...) Expand all
105 public: 100 public:
106 // See ProcessMasterPreferences for more info about this structure. 101 // See ProcessMasterPreferences for more info about this structure.
107 struct MasterPrefs { 102 struct MasterPrefs {
108 MasterPrefs(); 103 MasterPrefs();
109 ~MasterPrefs(); 104 ~MasterPrefs();
110 105
111 int ping_delay; 106 int ping_delay;
112 bool homepage_defined; 107 bool homepage_defined;
113 int do_import_items; 108 int do_import_items;
114 int dont_import_items; 109 int dont_import_items;
115 bool run_search_engine_experiment;
116 bool randomize_search_engine_experiment;
117 bool make_chrome_default; 110 bool make_chrome_default;
118 std::vector<GURL> new_tabs; 111 std::vector<GURL> new_tabs;
119 std::vector<GURL> bookmarks; 112 std::vector<GURL> bookmarks;
120 }; 113 };
121 114
122 // The master preferences is a JSON file with the same entries as the 115 // The master preferences is a JSON file with the same entries as the
123 // 'Default\Preferences' file. This function locates this file from a standard 116 // 'Default\Preferences' file. This function locates this file from a standard
124 // location and processes it so it becomes the default preferences in the 117 // location and processes it so it becomes the default preferences in the
125 // profile pointed to by |user_data_dir|. After processing the file, the 118 // profile pointed to by |user_data_dir|. After processing the file, the
126 // function returns true if and only if showing the first run dialog is 119 // function returns true if and only if showing the first run dialog is
(...skipping 30 matching lines...) Expand all
157 // is running. 150 // is running.
158 static void DoDelayedInstallExtensions(); 151 static void DoDelayedInstallExtensions();
159 152
160 #endif 153 #endif
161 154
162 // This class is for scoping purposes. 155 // This class is for scoping purposes.
163 DISALLOW_IMPLICIT_CONSTRUCTORS(FirstRun); 156 DISALLOW_IMPLICIT_CONSTRUCTORS(FirstRun);
164 }; 157 };
165 158
166 #endif // CHROME_BROWSER_FIRST_RUN_FIRST_RUN_H_ 159 #endif // CHROME_BROWSER_FIRST_RUN_FIRST_RUN_H_
OLDNEW
« no previous file with comments | « chrome/browser/chrome_browser_main.cc ('k') | chrome/browser/first_run/first_run.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698