| Index: third_party/WebKit/Source/core/inspector/InspectorLogAgent.cpp
|
| diff --git a/third_party/WebKit/Source/core/inspector/InspectorLogAgent.cpp b/third_party/WebKit/Source/core/inspector/InspectorLogAgent.cpp
|
| index daf96bfcf85df6269fd62c8e41e590561347163d..9e3e6f74d40e1cfb49488021f5fdd30b73864c01 100644
|
| --- a/third_party/WebKit/Source/core/inspector/InspectorLogAgent.cpp
|
| +++ b/third_party/WebKit/Source/core/inspector/InspectorLogAgent.cpp
|
| @@ -5,7 +5,6 @@
|
| #include "core/inspector/InspectorLogAgent.h"
|
|
|
| #include "bindings/core/v8/SourceLocation.h"
|
| -#include "core/frame/PerformanceMonitor.h"
|
| #include "core/inspector/ConsoleMessage.h"
|
| #include "core/inspector/ConsoleMessageStorage.h"
|
| #include "core/inspector/IdentifiersFactory.h"
|
| @@ -14,7 +13,6 @@
|
|
|
| namespace LogAgentState {
|
| static const char logEnabled[] = "logEnabled";
|
| -static const char logViolationsEnabled[] = "logViolationsEnabled";
|
| }
|
|
|
| namespace {
|
| @@ -42,8 +40,6 @@
|
| return protocol::Log::LogEntry::SourceEnum::Deprecation;
|
| case WorkerMessageSource:
|
| return protocol::Log::LogEntry::SourceEnum::Worker;
|
| - case ViolationMessageSource:
|
| - return protocol::Log::LogEntry::SourceEnum::Violation;
|
| default:
|
| return protocol::Log::LogEntry::SourceEnum::Other;
|
| }
|
| @@ -67,17 +63,13 @@
|
|
|
| } // namespace
|
|
|
| -InspectorLogAgent::InspectorLogAgent(ConsoleMessageStorage* storage,
|
| - PerformanceMonitor* performanceMonitor)
|
| - : m_enabled(false),
|
| - m_storage(storage),
|
| - m_performanceMonitor(performanceMonitor) {}
|
| +InspectorLogAgent::InspectorLogAgent(ConsoleMessageStorage* storage)
|
| + : m_enabled(false), m_storage(storage) {}
|
|
|
| InspectorLogAgent::~InspectorLogAgent() {}
|
|
|
| DEFINE_TRACE(InspectorLogAgent) {
|
| visitor->trace(m_storage);
|
| - visitor->trace(m_performanceMonitor);
|
| InspectorBaseAgent::trace(visitor);
|
| }
|
|
|
| @@ -85,8 +77,6 @@
|
| if (!m_state->booleanProperty(LogAgentState::logEnabled, false))
|
| return;
|
| enable();
|
| - if (m_state->booleanProperty(LogAgentState::logViolationsEnabled, false))
|
| - setReportViolationsEnabled(true);
|
| }
|
|
|
| void InspectorLogAgent::consoleMessageAdded(ConsoleMessage* message) {
|
| @@ -156,13 +146,4 @@
|
| return Response::OK();
|
| }
|
|
|
| -Response InspectorLogAgent::setReportViolationsEnabled(bool enabled) {
|
| - if (!m_enabled)
|
| - return Response::Error("Log is not enabled");
|
| - m_state->setBoolean(LogAgentState::logViolationsEnabled, enabled);
|
| - if (m_performanceMonitor)
|
| - m_performanceMonitor->setLoggingEnabled(enabled);
|
| - return Response::OK();
|
| -}
|
| -
|
| } // namespace blink
|
|
|