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_win.cc | |
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_win.cc')
-rw-r--r-- | chrome/browser/first_run_win.cc | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/chrome/browser/first_run_win.cc b/chrome/browser/first_run_win.cc index f12a75b..a93a16c 100644 --- a/chrome/browser/first_run_win.cc +++ b/chrome/browser/first_run_win.cc @@ -228,20 +228,15 @@ bool FirstRun::CreateChromeQuickLaunchShortcut() { true); // create if doesn't exist. } - bool FirstRun::ProcessMasterPreferences(const FilePath& user_data_dir, - const FilePath& master_prefs_path, MasterPrefs* out_prefs) { DCHECK(!user_data_dir.empty()); - FilePath master_prefs = master_prefs_path; - if (master_prefs.empty()) { - // The default location of the master prefs is next to the chrome exe. - // TODO(port): port installer_util and use this. - if (!PathService::Get(base::DIR_EXE, &master_prefs)) - return true; - master_prefs = - master_prefs.AppendASCII(installer_util::kDefaultMasterPrefs); - } + + // The standard location of the master prefs is next to the chrome exe. + FilePath master_prefs; + if (!PathService::Get(base::DIR_EXE, &master_prefs)) + return true; + master_prefs = master_prefs.AppendASCII(installer_util::kDefaultMasterPrefs); scoped_ptr<DictionaryValue> prefs( installer_util::ParseDistributionPreferences(master_prefs)); |