diff options
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)); |