| 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 // Returns true if this is the first time chrome is run for this user. | 92 // Returns true if this is the first time chrome is run for this user. |
| 93 bool IsChromeFirstRun(); | 93 bool IsChromeFirstRun(); |
| 94 | 94 |
| 95 // Creates the sentinel file that signals that chrome has been configured. | 95 // Creates the sentinel file that signals that chrome has been configured. |
| 96 bool CreateSentinel(); | 96 bool CreateSentinel(); |
| 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 RegisterUserPrefs(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 // Removes the sentinel file created in ConfigDone(). Returns false if the |
| 105 // sentinel file could not be removed. | 105 // sentinel file could not be removed. |
| 106 bool RemoveSentinel(); | 106 bool RemoveSentinel(); |
| 107 | 107 |
| 108 // Sets the kShowFirstRunBubbleOption local state pref so that the browser | 108 // Sets the kShowFirstRunBubbleOption local state pref so that the browser |
| 109 // shows the bubble once the main message loop gets going (or refrains from | 109 // 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). | 110 // 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. | 111 // Once FIRST_RUN_BUBBLE_SUPPRESS is set, no other value can be set. |
| 112 // Returns false if the pref service could not be retrieved. | 112 // Returns false if the pref service could not be retrieved. |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 const content::NotificationDetails& details) OVERRIDE; | 193 const content::NotificationDetails& details) OVERRIDE; |
| 194 | 194 |
| 195 content::NotificationRegistrar registrar_; | 195 content::NotificationRegistrar registrar_; |
| 196 | 196 |
| 197 DISALLOW_COPY_AND_ASSIGN(FirstRunBubbleLauncher); | 197 DISALLOW_COPY_AND_ASSIGN(FirstRunBubbleLauncher); |
| 198 }; | 198 }; |
| 199 | 199 |
| 200 } // namespace first_run | 200 } // namespace first_run |
| 201 | 201 |
| 202 #endif // CHROME_BROWSER_FIRST_RUN_FIRST_RUN_H_ | 202 #endif // CHROME_BROWSER_FIRST_RUN_FIRST_RUN_H_ |
| OLD | NEW |