OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |