Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(31)

Unified Diff: content/shell/shell_main_delegate.cc

Issue 10879111: content_shell: always initialize logging. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/shell_main_delegate.cc
diff --git a/content/shell/shell_main_delegate.cc b/content/shell/shell_main_delegate.cc
index 53a2170c7d7b2b75532ce47c0cbd4c2ef18df275..f226c912444a504ed284e480fd762ad90aa7b162 100644
--- a/content/shell/shell_main_delegate.cc
+++ b/content/shell/shell_main_delegate.cc
@@ -57,7 +57,7 @@ void InitLogging() {
log_filename = log_filename.AppendASCII("content_shell.log");
logging::InitLogging(
log_filename.value().c_str(),
- logging::LOG_ONLY_TO_FILE,
+ logging::LOG_TO_BOTH_FILE_AND_SYSTEM_DEBUG_LOG,
logging::LOCK_LOG_FILE,
logging::DELETE_OLD_LOG_FILE,
logging::DISABLE_DCHECK_FOR_NON_OFFICIAL_RELEASE_BUILDS);
@@ -83,8 +83,8 @@ bool ShellMainDelegate::BasicStartupComplete(int* exit_code) {
logging::LogEventProvider::Initialize(kContentShellProviderName);
#endif
+ InitLogging();
if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kDumpRenderTree)) {
- InitLogging();
CommandLine::ForCurrentProcess()->AppendSwitch(
switches::kAllowFileAccessFromFiles);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698