summaryrefslogtreecommitdiffstats
path: root/chrome/browser/first_run/first_run_internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/first_run/first_run_internal.h')
-rw-r--r--chrome/browser/first_run/first_run_internal.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/chrome/browser/first_run/first_run_internal.h b/chrome/browser/first_run/first_run_internal.h
index 5f66f3e..b5c2934 100644
--- a/chrome/browser/first_run/first_run_internal.h
+++ b/chrome/browser/first_run/first_run_internal.h
@@ -23,6 +23,10 @@ class Profile;
class ProcessSingleton;
class TemplateURLService;
+namespace installer {
+class MasterPreferences;
+}
+
namespace first_run {
namespace internal {
@@ -38,6 +42,22 @@ extern FirstRunState first_run_;
// The kSentinelFile file absence will tell us it is a first run.
extern const char* const kSentinelFile;
+// Loads master preferences from the master preference file into the installer
+// master preferences. Passes the master preference file path out in
+// master_prefs_path. Returns the pointer to installer::MasterPreferences object
+// if successful; otherwise, returns NULL.
+installer::MasterPreferences* LoadMasterPrefs(FilePath* master_prefs_path);
+
+// Copies user preference file to master preference file. Returns true if
+// successful.
+bool CopyPrefFile(const FilePath& user_data_dir,
+ const FilePath& master_prefs_path);
+
+// Sets up master preferences by preferences passed by installer.
+void SetupMasterPrefsFromInstallPrefs(
+ MasterPrefs* out_prefs,
+ installer::MasterPreferences* install_prefs);
+
// -- Platform-specific functions --
// Gives the full path to the sentinel file. The file might not exist.