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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 // if successful; otherwise, returns NULL. | 47 // if successful; otherwise, returns NULL. |
48 installer::MasterPreferences* LoadMasterPrefs(base::FilePath* master_prefs_path)
; | 48 installer::MasterPreferences* LoadMasterPrefs(base::FilePath* master_prefs_path)
; |
49 | 49 |
50 // Copies user preference file to master preference file. Returns true if | 50 // Copies user preference file to master preference file. Returns true if |
51 // successful. | 51 // successful. |
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 MasterPrefs* out_prefs, | 57 const installer::MasterPreferences& install_prefs, |
58 installer::MasterPreferences* install_prefs); | 58 MasterPrefs* out_prefs); |
59 | 59 |
60 void SetShowWelcomePagePrefIfNeeded( | 60 void SetShowWelcomePagePrefIfNeeded( |
61 installer::MasterPreferences* install_prefs); | 61 installer::MasterPreferences* install_prefs); |
62 | 62 |
63 void SetDefaultBrowser(installer::MasterPreferences* install_prefs); | 63 void SetDefaultBrowser(installer::MasterPreferences* install_prefs); |
64 | 64 |
65 // Returns true if first run ui should be skipped, which is the case that | 65 // Returns true if first run ui should be skipped, which is the case that |
66 // skip_first_run_ui setting is set to true. In the case the setting is | 66 // skip_first_run_ui setting is set to true. In the case the setting is |
67 // not found or specified, it returns false by default. | 67 // not found or specified, it returns false by default. |
68 bool SkipFirstRunUI(installer::MasterPreferences* install_prefs); | 68 bool SkipFirstRunUI(installer::MasterPreferences* install_prefs); |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 | 108 |
109 // Shows the EULA dialog if required. Returns true if the EULA is accepted, | 109 // Shows the EULA dialog if required. Returns true if the EULA is accepted, |
110 // returns false if the EULA has not been accepted, in which case the browser | 110 // returns false if the EULA has not been accepted, in which case the browser |
111 // should exit. | 111 // should exit. |
112 bool ShowPostInstallEULAIfNeeded(installer::MasterPreferences* install_prefs); | 112 bool ShowPostInstallEULAIfNeeded(installer::MasterPreferences* install_prefs); |
113 | 113 |
114 } // namespace internal | 114 } // namespace internal |
115 } // namespace first_run | 115 } // namespace first_run |
116 | 116 |
117 #endif // CHROME_BROWSER_FIRST_RUN_FIRST_RUN_INTERNAL_H_ | 117 #endif // CHROME_BROWSER_FIRST_RUN_FIRST_RUN_INTERNAL_H_ |
OLD | NEW |