diff options
author | tony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-10 04:45:54 +0000 |
---|---|---|
committer | tony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-10 04:45:54 +0000 |
commit | f988638e6ea5a3f16e289be9ac7ffd853f7a13e4 (patch) | |
tree | 21a390713263cede93537c0651656e83acbc5965 /chrome/installer/setup | |
parent | 39b22b7c4c5c45183a5224449f0f82d7998a70e0 (diff) | |
download | chromium_src-f988638e6ea5a3f16e289be9ac7ffd853f7a13e4.zip chromium_src-f988638e6ea5a3f16e289be9ac7ffd853f7a13e4.tar.gz chromium_src-f988638e6ea5a3f16e289be9ac7ffd853f7a13e4.tar.bz2 |
Allow the use of the master_preferences file in Linux.
Also refactor FirstRunTabs to use GURL instead of wstring.
BUG=none
TEST=Add master_preferences file to directory containing the chrome binary and
execute chrome with the --first-run option.
Original patch by bgmerrell@gmail.com at
http://codereview.chromium.org/551160
Review URL: http://codereview.chromium.org/796001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41131 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/installer/setup')
-rw-r--r-- | chrome/installer/setup/install.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/installer/setup/install.cc b/chrome/installer/setup/install.cc index eec0ed3..226437d 100644 --- a/chrome/installer/setup/install.cc +++ b/chrome/installer/setup/install.cc @@ -181,7 +181,8 @@ void CopyPreferenceFileForFirstRun(bool system_level, const std::wstring& prefs_source_path) { FilePath prefs_dest_path = FilePath::FromWStringHack( installer::GetChromeInstallPath(system_level)); - prefs_dest_path = prefs_dest_path.Append(installer_util::kDefaultMasterPrefs); + prefs_dest_path = prefs_dest_path.AppendASCII( + installer_util::kDefaultMasterPrefs); if (!file_util::CopyFile(FilePath::FromWStringHack(prefs_source_path), prefs_dest_path)) { LOG(INFO) << "Failed to copy master preferences."; |