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

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: add first_run::IsFirstRunSuppressed() 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
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 std::vector<GURL> new_tabs; 84 std::vector<GURL> new_tabs;
85 std::vector<GURL> bookmarks; 85 std::vector<GURL> bookmarks;
86 std::string import_bookmarks_path; 86 std::string import_bookmarks_path;
87 std::string variations_seed; 87 std::string variations_seed;
88 std::string suppress_default_browser_prompt_for_version; 88 std::string suppress_default_browser_prompt_for_version;
89 }; 89 };
90 90
91 // Returns true if this is the first time chrome is run for this user. 91 // Returns true if this is the first time chrome is run for this user.
92 bool IsChromeFirstRun(); 92 bool IsChromeFirstRun();
93 93
94 // Returns true if |command_line|'s switches explicitly specify that first run
95 // should be suppressed in the current run.
96 bool IsFirstRunSuppressed(const CommandLine& command_line);
97
94 // Creates the first run sentinel if needed. This should only be called after 98 // Creates the first run sentinel if needed. This should only be called after
95 // the process singleton has been grabbed by the current process 99 // the process singleton has been grabbed by the current process
96 // (http://crbug.com/264694). 100 // (http://crbug.com/264694).
97 void CreateSentinelIfNeeded(); 101 void CreateSentinelIfNeeded();
98 102
99 // Get RLZ ping delay pref name. 103 // Get RLZ ping delay pref name.
100 std::string GetPingDelayPrefName(); 104 std::string GetPingDelayPrefName();
101 105
102 // Register user preferences used by the MasterPrefs structure. 106 // Register user preferences used by the MasterPrefs structure.
103 void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); 107 void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry);
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 const content::NotificationDetails& details) OVERRIDE; 198 const content::NotificationDetails& details) OVERRIDE;
195 199
196 content::NotificationRegistrar registrar_; 200 content::NotificationRegistrar registrar_;
197 201
198 DISALLOW_COPY_AND_ASSIGN(FirstRunBubbleLauncher); 202 DISALLOW_COPY_AND_ASSIGN(FirstRunBubbleLauncher);
199 }; 203 };
200 204
201 } // namespace first_run 205 } // namespace first_run
202 206
203 #endif // CHROME_BROWSER_FIRST_RUN_FIRST_RUN_H_ 207 #endif // CHROME_BROWSER_FIRST_RUN_FIRST_RUN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698