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

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

Issue 208393020: Fix the new First Run sentinel file path determination. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Simplify changes. Created 6 years, 8 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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 // the process singleton has been grabbed by the current process 94 // the process singleton has been grabbed by the current process
95 // (http://crbug.com/264694). 95 // (http://crbug.com/264694).
96 void CreateSentinelIfNeeded(); 96 void CreateSentinelIfNeeded();
97 97
98 // Get RLZ ping delay pref name. 98 // Get RLZ ping delay pref name.
99 std::string GetPingDelayPrefName(); 99 std::string GetPingDelayPrefName();
100 100
101 // Register user preferences used by the MasterPrefs structure. 101 // Register user preferences used by the MasterPrefs structure.
102 void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); 102 void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry);
103 103
104 // Removes the sentinel file created in ConfigDone(). Returns false if the 104 // Remove the first run sentinel file; returns false on failure.
105 // sentinel file could not be removed.
106 bool RemoveSentinel(); 105 bool RemoveSentinel();
107 106
108 // Sets the kShowFirstRunBubbleOption local state pref so that the browser 107 // Sets the kShowFirstRunBubbleOption local state pref so that the browser
109 // shows the bubble once the main message loop gets going (or refrains from 108 // shows the bubble once the main message loop gets going (or refrains from
110 // showing the bubble, if |show_bubble| is not FIRST_RUN_BUBBLE_SHOW). 109 // showing the bubble, if |show_bubble| is not FIRST_RUN_BUBBLE_SHOW).
111 // Once FIRST_RUN_BUBBLE_SUPPRESS is set, no other value can be set. 110 // Once FIRST_RUN_BUBBLE_SUPPRESS is set, no other value can be set.
112 // Returns false if the pref service could not be retrieved. 111 // Returns false if the pref service could not be retrieved.
113 bool SetShowFirstRunBubblePref(FirstRunBubbleOptions show_bubble_option); 112 bool SetShowFirstRunBubblePref(FirstRunBubbleOptions show_bubble_option);
114 113
115 // Sets a flag that will cause ShouldShowWelcomePage to return true 114 // Sets a flag that will cause ShouldShowWelcomePage to return true
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 // 172 //
174 // See chrome/installer/util/master_preferences.h for a description of 173 // See chrome/installer/util/master_preferences.h for a description of
175 // 'master_preferences' file. 174 // 'master_preferences' file.
176 ProcessMasterPreferencesResult ProcessMasterPreferences( 175 ProcessMasterPreferencesResult ProcessMasterPreferences(
177 const base::FilePath& user_data_dir, 176 const base::FilePath& user_data_dir,
178 MasterPrefs* out_prefs); 177 MasterPrefs* out_prefs);
179 178
180 } // namespace first_run 179 } // namespace first_run
181 180
182 #endif // CHROME_BROWSER_FIRST_RUN_FIRST_RUN_H_ 181 #endif // CHROME_BROWSER_FIRST_RUN_FIRST_RUN_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/first_run/first_run.cc » ('j') | chrome/browser/first_run/first_run.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698