| 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 // the process singleton has been grabbed by the current process | 96 // the process singleton has been grabbed by the current process |
| 97 // (http://crbug.com/264694). | 97 // (http://crbug.com/264694). |
| 98 void CreateSentinelIfNeeded(); | 98 void CreateSentinelIfNeeded(); |
| 99 | 99 |
| 100 // Get RLZ ping delay pref name. | 100 // Get RLZ ping delay pref name. |
| 101 std::string GetPingDelayPrefName(); | 101 std::string GetPingDelayPrefName(); |
| 102 | 102 |
| 103 // Register user preferences used by the MasterPrefs structure. | 103 // Register user preferences used by the MasterPrefs structure. |
| 104 void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); | 104 void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); |
| 105 | 105 |
| 106 // Remove the first run sentinel file; returns false on failure. | |
| 107 bool RemoveSentinel(); | |
| 108 | |
| 109 // Sets the kShowFirstRunBubbleOption local state pref so that the browser | 106 // Sets the kShowFirstRunBubbleOption local state pref so that the browser |
| 110 // shows the bubble once the main message loop gets going (or refrains from | 107 // shows the bubble once the main message loop gets going (or refrains from |
| 111 // showing the bubble, if |show_bubble| is not FIRST_RUN_BUBBLE_SHOW). | 108 // showing the bubble, if |show_bubble| is not FIRST_RUN_BUBBLE_SHOW). |
| 112 // Once FIRST_RUN_BUBBLE_SUPPRESS is set, no other value can be set. | 109 // Once FIRST_RUN_BUBBLE_SUPPRESS is set, no other value can be set. |
| 113 // Returns false if the pref service could not be retrieved. | 110 // Returns false if the pref service could not be retrieved. |
| 114 bool SetShowFirstRunBubblePref(FirstRunBubbleOptions show_bubble_option); | 111 bool SetShowFirstRunBubblePref(FirstRunBubbleOptions show_bubble_option); |
| 115 | 112 |
| 116 // Sets a flag that will cause ShouldShowWelcomePage to return true | 113 // Sets a flag that will cause ShouldShowWelcomePage to return true |
| 117 // exactly once, so that the browser loads the welcome tab once the | 114 // exactly once, so that the browser loads the welcome tab once the |
| 118 // message loop gets going. | 115 // message loop gets going. |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 // | 171 // |
| 175 // See chrome/installer/util/master_preferences.h for a description of | 172 // See chrome/installer/util/master_preferences.h for a description of |
| 176 // 'master_preferences' file. | 173 // 'master_preferences' file. |
| 177 ProcessMasterPreferencesResult ProcessMasterPreferences( | 174 ProcessMasterPreferencesResult ProcessMasterPreferences( |
| 178 const base::FilePath& user_data_dir, | 175 const base::FilePath& user_data_dir, |
| 179 MasterPrefs* out_prefs); | 176 MasterPrefs* out_prefs); |
| 180 | 177 |
| 181 } // namespace first_run | 178 } // namespace first_run |
| 182 | 179 |
| 183 #endif // CHROME_BROWSER_FIRST_RUN_FIRST_RUN_H_ | 180 #endif // CHROME_BROWSER_FIRST_RUN_FIRST_RUN_H_ |
| OLD | NEW |