Commit ce591772 authored by pfeldman@chromium.org's avatar pfeldman@chromium.org

Logging: pass through logging for devtools page (although it has no UI bindings).


Review URL: https://chromiumcodereview.appspot.com/12393045

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@186243 0039d316-1c4b-4281-b951-d872f2087c98
parent a574fd0e
......@@ -1527,8 +1527,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() << "\"" <<
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment