From acc91111087c9d9a5454e806ce91bea26c92c56a Mon Sep 17 00:00:00 2001 From: Marshall Greenblatt Date: Wed, 28 Aug 2013 15:26:30 +0000 Subject: [PATCH] Merge revision 1420 changes: - Fix assignment of log file path (issue #903). git-svn-id: https://chromiumembedded.googlecode.com/svn/branches/1547@1421 5089003a-bbd8-11dd-ad1f-f1f9622dbc98 --- libcef/common/main_delegate.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libcef/common/main_delegate.cc b/libcef/common/main_delegate.cc index ea71806f5..6eda09cde 100644 --- a/libcef/common/main_delegate.cc +++ b/libcef/common/main_delegate.cc @@ -284,8 +284,9 @@ bool CefMainDelegate::BasicStartupComplete(int* exit_code) { // Initialize logging. logging::LoggingSettings log_settings; - log_settings.log_file = - command_line->GetSwitchValuePath(switches::kLogFile).value().c_str(); + const base::FilePath& log_file = + command_line->GetSwitchValuePath(switches::kLogFile); + log_settings.log_file = log_file.value().c_str(); log_settings.lock_log = logging::DONT_LOCK_LOG_FILE; log_settings.delete_old = logging::APPEND_TO_OLD_LOG_FILE;