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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 bool CopyPrefFile(const base::FilePath& user_data_dir, | 52 bool CopyPrefFile(const base::FilePath& user_data_dir, |
53 const base::FilePath& master_prefs_path); | 53 const base::FilePath& master_prefs_path); |
54 | 54 |
55 // Sets up master preferences by preferences passed by installer. | 55 // Sets up master preferences by preferences passed by installer. |
56 void SetupMasterPrefsFromInstallPrefs( | 56 void SetupMasterPrefsFromInstallPrefs( |
57 const installer::MasterPreferences& install_prefs, | 57 const installer::MasterPreferences& install_prefs, |
58 MasterPrefs* out_prefs); | 58 MasterPrefs* out_prefs); |
59 | 59 |
60 void SetDefaultBrowser(installer::MasterPreferences* install_prefs); | 60 void SetDefaultBrowser(installer::MasterPreferences* install_prefs); |
61 | 61 |
62 // Returns true if first run ui should be skipped, which is the case that | |
63 // skip_first_run_ui setting is set to true. In the case the setting is | |
64 // not found or specified, it returns false by default. | |
65 bool SkipFirstRunUI(installer::MasterPreferences* install_prefs); | |
66 | |
67 // Sets ping_delay. | 62 // Sets ping_delay. |
68 void SetRLZPref(first_run::MasterPrefs* out_prefs, | 63 void SetRLZPref(first_run::MasterPrefs* out_prefs, |
69 installer::MasterPreferences* install_prefs); | 64 installer::MasterPreferences* install_prefs); |
70 | 65 |
71 // -- Platform-specific functions -- | 66 // -- Platform-specific functions -- |
72 | 67 |
73 void DoPostImportPlatformSpecificTasks(); | 68 void DoPostImportPlatformSpecificTasks(); |
74 | 69 |
75 // Gives the full path to the sentinel file. The file might not exist. | 70 // Gives the full path to the sentinel file. The file might not exist. |
76 // This function has a common implementation on OS_POSIX and a windows specific | 71 // This function has a common implementation on OS_POSIX and a windows specific |
(...skipping 28 matching lines...) Expand all Loading... |
105 | 100 |
106 // Shows the EULA dialog if required. Returns true if the EULA is accepted, | 101 // Shows the EULA dialog if required. Returns true if the EULA is accepted, |
107 // returns false if the EULA has not been accepted, in which case the browser | 102 // returns false if the EULA has not been accepted, in which case the browser |
108 // should exit. | 103 // should exit. |
109 bool ShowPostInstallEULAIfNeeded(installer::MasterPreferences* install_prefs); | 104 bool ShowPostInstallEULAIfNeeded(installer::MasterPreferences* install_prefs); |
110 | 105 |
111 } // namespace internal | 106 } // namespace internal |
112 } // namespace first_run | 107 } // namespace first_run |
113 | 108 |
114 #endif // CHROME_BROWSER_FIRST_RUN_FIRST_RUN_INTERNAL_H_ | 109 #endif // CHROME_BROWSER_FIRST_RUN_FIRST_RUN_INTERNAL_H_ |
OLD | NEW |