summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/core/content_main_delegate_qt.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/content_main_delegate_qt.cpp b/src/core/content_main_delegate_qt.cpp
index b8e40a448..7c2dde8c4 100644
--- a/src/core/content_main_delegate_qt.cpp
+++ b/src/core/content_main_delegate_qt.cpp
@@ -40,6 +40,8 @@
#include "base/logging.h"
#include "base/path_service.h"
#include "base/strings/string_number_conversions.h"
+#include "content/public/browser/browser_ipc_logging.h"
+#include "content/public/browser/browser_thread.h"
#include "content/public/common/content_paths.h"
#include "content/public/common/content_switches.h"
#include "ui/base/l10n/l10n_util.h"
@@ -81,6 +83,10 @@ void ContentMainDelegateQt::PreSandboxStartup()
}
logging::SetMinLogLevel(logLevel);
+
+#if defined(IPC_MESSAGE_LOG_ENABLED)
+ content::BrowserThread::PostTask(content::BrowserThread::UI, FROM_HERE, base::Bind(&content::EnableIPCLogging, true));
+#endif
}
content::ContentBrowserClient *ContentMainDelegateQt::CreateContentBrowserClient()