diff options
author | robertshield@chromium.org <robertshield@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-09 17:49:20 +0000 |
---|---|---|
committer | robertshield@chromium.org <robertshield@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-09 17:49:20 +0000 |
commit | 47b669061f04acba5182cd69c9e702107236df31 (patch) | |
tree | 8d5b6e0b869f0333410e61da6816f308db16443d /chrome/installer/util/logging_installer.cc | |
parent | ebd128415e344ff2eb3e591b4bf757cf69627aa5 (diff) | |
download | chromium_src-47b669061f04acba5182cd69c9e702107236df31.zip chromium_src-47b669061f04acba5182cd69c9e702107236df31.tar.gz chromium_src-47b669061f04acba5182cd69c9e702107236df31.tar.bz2 |
Add a dedicated log file for Chrome Frame installs (to avoid stomping on chrome_installer.log).
BUG=24809
TEST=Chrome Frame installer logs to chrome_frame_installer.log instead of chrome_installer.log.
Review URL: http://codereview.chromium.org/378025
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31442 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/installer/util/logging_installer.cc')
-rw-r--r-- | chrome/installer/util/logging_installer.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/chrome/installer/util/logging_installer.cc b/chrome/installer/util/logging_installer.cc index 02c0d9d..e03c25b 100644 --- a/chrome/installer/util/logging_installer.cc +++ b/chrome/installer/util/logging_installer.cc @@ -56,7 +56,13 @@ std::wstring GetLogFilePath(const CommandLine& command_line) { WideToASCII(installer_util::switches::kLogFile)); } - const std::wstring log_filename(L"chrome_installer.log"); + std::wstring log_filename; + if (command_line.HasSwitch(installer_util::switches::kChromeFrame)) { + log_filename = L"chrome_frame_installer.log"; + } else { + log_filename = L"chrome_installer.log"; + } + FilePath log_path; if (PathService::Get(base::DIR_TEMP, &log_path)) { |