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

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

Issue 21150006: Introduce --cancel-first-run and reduce the strength of --no-first-run. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: --skip-first-run => --no-first-run Created 7 years, 4 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) 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 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 12
13 class CommandLine;
13 class GURL; 14 class GURL;
14 class Profile; 15 class Profile;
15 16
16 namespace base { 17 namespace base {
17 class FilePath; 18 class FilePath;
18 } 19 }
19 20
20 namespace user_prefs { 21 namespace user_prefs {
21 class PrefRegistrySyncable; 22 class PrefRegistrySyncable;
22 } 23 }
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 std::vector<GURL> new_tabs; 78 std::vector<GURL> new_tabs;
78 std::vector<GURL> bookmarks; 79 std::vector<GURL> bookmarks;
79 std::string import_bookmarks_path; 80 std::string import_bookmarks_path;
80 std::string variations_seed; 81 std::string variations_seed;
81 std::string suppress_default_browser_prompt_for_version; 82 std::string suppress_default_browser_prompt_for_version;
82 }; 83 };
83 84
84 // Returns true if this is the first time chrome is run for this user. 85 // Returns true if this is the first time chrome is run for this user.
85 bool IsChromeFirstRun(); 86 bool IsChromeFirstRun();
86 87
88 // Returns true if |command_line|'s switches explicitly specify that first run
89 // should be suppressed in the current run.
90 bool IsFirstRunSuppressed(const CommandLine& command_line);
91
87 // Creates the first run sentinel if needed. This should only be called after 92 // Creates the first run sentinel if needed. This should only be called after
88 // the process singleton has been grabbed by the current process 93 // the process singleton has been grabbed by the current process
89 // (http://crbug.com/264694). 94 // (http://crbug.com/264694).
90 void CreateSentinelIfNeeded(); 95 void CreateSentinelIfNeeded();
91 96
92 // Get RLZ ping delay pref name. 97 // Get RLZ ping delay pref name.
93 std::string GetPingDelayPrefName(); 98 std::string GetPingDelayPrefName();
94 99
95 // Register user preferences used by the MasterPrefs structure. 100 // Register user preferences used by the MasterPrefs structure.
96 void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); 101 void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry);
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 // 170 //
166 // See chrome/installer/util/master_preferences.h for a description of 171 // See chrome/installer/util/master_preferences.h for a description of
167 // 'master_preferences' file. 172 // 'master_preferences' file.
168 ProcessMasterPreferencesResult ProcessMasterPreferences( 173 ProcessMasterPreferencesResult ProcessMasterPreferences(
169 const base::FilePath& user_data_dir, 174 const base::FilePath& user_data_dir,
170 MasterPrefs* out_prefs); 175 MasterPrefs* out_prefs);
171 176
172 } // namespace first_run 177 } // namespace first_run
173 178
174 #endif // CHROME_BROWSER_FIRST_RUN_FIRST_RUN_H_ 179 #endif // CHROME_BROWSER_FIRST_RUN_FIRST_RUN_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/login_browsertest.cc ('k') | chrome/browser/first_run/first_run.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698