summaryrefslogtreecommitdiffstats
path: root/chrome/installer/util/logging_installer.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/installer/util/logging_installer.cc')
-rw-r--r--chrome/installer/util/logging_installer.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/chrome/installer/util/logging_installer.cc b/chrome/installer/util/logging_installer.cc
index e03c25b..a7ac607 100644
--- a/chrome/installer/util/logging_installer.cc
+++ b/chrome/installer/util/logging_installer.cc
@@ -50,8 +50,7 @@ void EndInstallerLogging() {
}
std::wstring GetLogFilePath(const CommandLine& command_line) {
- if (command_line.HasSwitch(
- WideToASCII(installer_util::switches::kLogFile))) {
+ if (command_line.HasSwitch(WideToASCII(installer_util::switches::kLogFile))) {
return command_line.GetSwitchValue(
WideToASCII(installer_util::switches::kLogFile));
}
@@ -64,10 +63,9 @@ std::wstring GetLogFilePath(const CommandLine& command_line) {
}
FilePath log_path;
-
if (PathService::Get(base::DIR_TEMP, &log_path)) {
log_path = log_path.Append(log_filename);
- return log_path.ToWStringHack();
+ return log_path.value();
} else {
return log_filename;
}