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_INTERNAL_H_ | 5 #ifndef CHROME_BROWSER_FIRST_RUN_FIRST_RUN_INTERNAL_H_ |
6 #define CHROME_BROWSER_FIRST_RUN_FIRST_RUN_INTERNAL_H_ | 6 #define CHROME_BROWSER_FIRST_RUN_FIRST_RUN_INTERNAL_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 | 93 |
94 // Sets up master preferences by preferences passed by installer. | 94 // Sets up master preferences by preferences passed by installer. |
95 void SetupMasterPrefsFromInstallPrefs( | 95 void SetupMasterPrefsFromInstallPrefs( |
96 const installer::MasterPreferences& install_prefs, | 96 const installer::MasterPreferences& install_prefs, |
97 MasterPrefs* out_prefs); | 97 MasterPrefs* out_prefs); |
98 | 98 |
99 void SetDefaultBrowser(installer::MasterPreferences* install_prefs); | 99 void SetDefaultBrowser(installer::MasterPreferences* install_prefs); |
100 | 100 |
101 // -- Platform-specific functions -- | 101 // -- Platform-specific functions -- |
102 | 102 |
103 void DoPostImportPlatformSpecificTasks(); | 103 void DoPostImportPlatformSpecificTasks(Profile* profile); |
104 | 104 |
105 // Gives the full path to the sentinel file. The file might not exist. | 105 // Gives the full path to the sentinel file. The file might not exist. |
106 // This function has a common implementation on OS_POSIX and a windows specific | 106 // This function has a common implementation on OS_POSIX and a windows specific |
107 // implementation. | 107 // implementation. |
108 bool GetFirstRunSentinelFilePath(base::FilePath* path); | 108 bool GetFirstRunSentinelFilePath(base::FilePath* path); |
109 | 109 |
110 // This function has a common implementationin for all non-linux platforms, and | 110 // This function has a common implementationin for all non-linux platforms, and |
111 // a linux specific implementation. | 111 // a linux specific implementation. |
112 bool IsOrganicFirstRun(); | 112 bool IsOrganicFirstRun(); |
113 | 113 |
(...skipping 24 matching lines...) Expand all Loading... |
138 // should exit. | 138 // should exit. |
139 bool ShowPostInstallEULAIfNeeded(installer::MasterPreferences* install_prefs); | 139 bool ShowPostInstallEULAIfNeeded(installer::MasterPreferences* install_prefs); |
140 | 140 |
141 // Returns the path for the master preferences file. | 141 // Returns the path for the master preferences file. |
142 base::FilePath MasterPrefsPath(); | 142 base::FilePath MasterPrefsPath(); |
143 | 143 |
144 } // namespace internal | 144 } // namespace internal |
145 } // namespace first_run | 145 } // namespace first_run |
146 | 146 |
147 #endif // CHROME_BROWSER_FIRST_RUN_FIRST_RUN_INTERNAL_H_ | 147 #endif // CHROME_BROWSER_FIRST_RUN_FIRST_RUN_INTERNAL_H_ |
OLD | NEW |