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

Unified Diff: content/browser/renderer_host/render_view_host_impl.cc

Issue 12393045: Logging: pass through logging for devtools page (although it has no UI bindings). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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/browser/renderer_host/render_view_host_impl.cc
diff --git a/content/browser/renderer_host/render_view_host_impl.cc b/content/browser/renderer_host/render_view_host_impl.cc
index 3bc3b3c1229819903fb3e30221414f53f3cbb5e0..7bca19eb96449d8620f9e2b00045388deb9db4eb 100644
--- a/content/browser/renderer_host/render_view_host_impl.cc
+++ b/content/browser/renderer_host/render_view_host_impl.cc
@@ -1524,8 +1524,7 @@ void RenderViewHostImpl::OnAddMessageToConsole(
if (delegate_->AddMessageToConsole(level, message, line_no, source_id))
return;
// Pass through log level only on WebUI pages to limit console spew.
- int32 resolved_level =
- (enabled_bindings_ & BINDINGS_POLICY_WEB_UI) ? level : 0;
+ int32 resolved_level = HasWebUIScheme(delegate_->GetURL()) ? level : 0;
if (resolved_level >= ::logging::GetMinLogLevel()) {
logging::LogMessage("CONSOLE", line_no, resolved_level).stream() << "\"" <<
« 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