| 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 |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 | 12 |
| 13 class CommandLine; | |
| 14 class GURL; | 13 class GURL; |
| 15 class Profile; | 14 class Profile; |
| 16 | 15 |
| 17 namespace base { | 16 namespace base { |
| 17 class CommandLine; |
| 18 class FilePath; | 18 class FilePath; |
| 19 } | 19 } |
| 20 | 20 |
| 21 namespace user_prefs { | 21 namespace user_prefs { |
| 22 class PrefRegistrySyncable; | 22 class PrefRegistrySyncable; |
| 23 } | 23 } |
| 24 | 24 |
| 25 // This namespace contains the chrome first-run installation actions needed to | 25 // This namespace contains the chrome first-run installation actions needed to |
| 26 // fully test the custom installer. It also contains the opposite actions to | 26 // fully test the custom installer. It also contains the opposite actions to |
| 27 // execute during uninstall. When the first run UI is ready we won't | 27 // execute during uninstall. When the first run UI is ready we won't |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 std::string variations_seed; | 81 std::string variations_seed; |
| 82 std::string variations_seed_signature; | 82 std::string variations_seed_signature; |
| 83 std::string suppress_default_browser_prompt_for_version; | 83 std::string suppress_default_browser_prompt_for_version; |
| 84 }; | 84 }; |
| 85 | 85 |
| 86 // Returns true if this is the first time chrome is run for this user. | 86 // Returns true if this is the first time chrome is run for this user. |
| 87 bool IsChromeFirstRun(); | 87 bool IsChromeFirstRun(); |
| 88 | 88 |
| 89 // Returns true if |command_line|'s switches explicitly specify that first run | 89 // Returns true if |command_line|'s switches explicitly specify that first run |
| 90 // should be suppressed in the current run. | 90 // should be suppressed in the current run. |
| 91 bool IsFirstRunSuppressed(const CommandLine& command_line); | 91 bool IsFirstRunSuppressed(const base::CommandLine& command_line); |
| 92 | 92 |
| 93 // Creates the first run sentinel if needed. This should only be called after | 93 // Creates the first run sentinel if needed. This should only be called 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. |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 // | 173 // |
| 174 // See chrome/installer/util/master_preferences.h for a description of | 174 // See chrome/installer/util/master_preferences.h for a description of |
| 175 // 'master_preferences' file. | 175 // 'master_preferences' file. |
| 176 ProcessMasterPreferencesResult ProcessMasterPreferences( | 176 ProcessMasterPreferencesResult ProcessMasterPreferences( |
| 177 const base::FilePath& user_data_dir, | 177 const base::FilePath& user_data_dir, |
| 178 MasterPrefs* out_prefs); | 178 MasterPrefs* out_prefs); |
| 179 | 179 |
| 180 } // namespace first_run | 180 } // namespace first_run |
| 181 | 181 |
| 182 #endif // CHROME_BROWSER_FIRST_RUN_FIRST_RUN_H_ | 182 #endif // CHROME_BROWSER_FIRST_RUN_FIRST_RUN_H_ |
| OLD | NEW |