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

Unified Diff: blimp/engine/app/blimp_content_main_delegate.cc

Issue 1840843005: blimp: Add logging for compositor and render widget feature. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Missed a test. Created 4 years, 9 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 | « blimp/common/logging_unittest.cc ('k') | cc/trees/remote_channel_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/engine/app/blimp_content_main_delegate.cc
diff --git a/blimp/engine/app/blimp_content_main_delegate.cc b/blimp/engine/app/blimp_content_main_delegate.cc
index 6fe0b41493ac7d7667cc37bc26d3752570e06813..265f368a4b0a8e6ca658ec31e530cc81b1956082 100644
--- a/blimp/engine/app/blimp_content_main_delegate.cc
+++ b/blimp/engine/app/blimp_content_main_delegate.cc
@@ -4,6 +4,7 @@
#include "blimp/engine/app/blimp_content_main_delegate.h"
+#include "base/command_line.h"
#include "base/files/file.h"
#include "base/files/file_path.h"
#include "base/logging.h"
@@ -17,6 +18,13 @@ namespace blimp {
namespace engine {
namespace {
void InitLogging() {
+ // TODO(haibinlu): Remove this before release.
+ // Enables a few verbose log by default.
+ if (!base::CommandLine::ForCurrentProcess()->HasSwitch("vmodule")) {
+ base::CommandLine::ForCurrentProcess()->AppendSwitchASCII(
+ "vmodule", "remote_channel_main=1");
+ }
+
logging::LoggingSettings settings;
base::FilePath log_filename;
PathService::Get(base::DIR_EXE, &log_filename);
« no previous file with comments | « blimp/common/logging_unittest.cc ('k') | cc/trees/remote_channel_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698