diff options
author | viettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-27 00:47:56 +0000 |
---|---|---|
committer | viettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-27 00:47:56 +0000 |
commit | f8512886af68091631786fb1ffdad7fbe7b92981 (patch) | |
tree | 0129d966bfd61e40c6882f583268d725cee673d5 /chrome/browser/first_run.h | |
parent | 78c0c9e23c13864112a91dfcbfce4a282d689afc (diff) | |
download | chromium_src-f8512886af68091631786fb1ffdad7fbe7b92981.zip chromium_src-f8512886af68091631786fb1ffdad7fbe7b92981.tar.gz chromium_src-f8512886af68091631786fb1ffdad7fbe7b92981.tar.bz2 |
Slight cleanup of some first-run/master-prefs stuff.
- let AddFirstRunNewTabs() run as elsewhere on Mac (the list of first-run tabs
will be empty)
- move various #if defined(OS_MACOSX) stuff to (existing!) Mac-specific files
instead
- remove an essentially-unused argument to FirstRun::ProcessMasterPreferences()
(the location of the master prefs was never specified, so the standard
location was always used)
BUG=none
TEST=everything still works
Review URL: http://codereview.chromium.org/2077025
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48345 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/first_run.h')
-rw-r--r-- | chrome/browser/first_run.h | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/chrome/browser/first_run.h b/chrome/browser/first_run.h index 0ac3da5..a08e753 100644 --- a/chrome/browser/first_run.h +++ b/chrome/browser/first_run.h @@ -65,14 +65,12 @@ class FirstRun { static int ImportNow(Profile* profile, const CommandLine& cmdline); // The master preferences is a JSON file with the same entries as the - // 'Default\Preferences' file. This function locates this file from - // master_pref_path or if that path is empty from the default location - // which is '<path to chrome.exe>\master_preferences', and process it - // so it becomes the default preferences in profile pointed by user_data_dir. - // After processing the file, the function returns true if showing the - // first run dialog is needed, and returns false if skipping first run - // dialogs. The detailed settings in the preference file is reported via - // preference_details. + // 'Default\Preferences' file. This function locates this file from a standard + // location and processes it so it becomes the default preferences in the + // profile pointed to by |user_data_dir|. After processing the file, the + // function returns true if and only if showing the first run dialog is + // needed. The detailed settings in the preference file are reported via + // |preference_details|. // // This function destroys any existing prefs file and it is meant to be // invoked only on first run. @@ -80,7 +78,6 @@ class FirstRun { // See chrome/installer/util/master_preferences.h for a description of // 'master_preferences' file. static bool ProcessMasterPreferences(const FilePath& user_data_dir, - const FilePath& master_prefs_path, MasterPrefs* out_prefs); // Returns true if this is the first time chrome is run for this user. |