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

Unified Diff: third_party/WebKit/Source/core/inspector/WorkerInspectorController.cpp

Issue 2649923007: Revert of Show service worker navigation preload requests in DevTools Network tab (Closed)
Patch Set: Created 3 years, 11 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
Index: third_party/WebKit/Source/core/inspector/WorkerInspectorController.cpp
diff --git a/third_party/WebKit/Source/core/inspector/WorkerInspectorController.cpp b/third_party/WebKit/Source/core/inspector/WorkerInspectorController.cpp
index e8f37b85e79efadc3219d0fdd1a2c6b254812bd3..b5147ea35d389792c4ab7de79277e0d0ca7dacf4 100644
--- a/third_party/WebKit/Source/core/inspector/WorkerInspectorController.cpp
+++ b/third_party/WebKit/Source/core/inspector/WorkerInspectorController.cpp
@@ -33,7 +33,6 @@
#include "core/InstrumentingAgents.h"
#include "core/inspector/InspectorInstrumentation.h"
#include "core/inspector/InspectorLogAgent.h"
-#include "core/inspector/InspectorNetworkAgent.h"
#include "core/inspector/WorkerThreadDebugger.h"
#include "core/inspector/protocol/Protocol.h"
#include "core/workers/WorkerBackingThread.h"
@@ -44,23 +43,18 @@
namespace blink {
WorkerInspectorController* WorkerInspectorController::create(
- WorkerThread* thread,
- bool networkCapability) {
+ WorkerThread* thread) {
WorkerThreadDebugger* debugger =
WorkerThreadDebugger::from(thread->isolate());
- return debugger ? new WorkerInspectorController(thread, debugger,
- networkCapability)
- : nullptr;
+ return debugger ? new WorkerInspectorController(thread, debugger) : nullptr;
}
WorkerInspectorController::WorkerInspectorController(
WorkerThread* thread,
- WorkerThreadDebugger* debugger,
- bool networkCapability)
+ WorkerThreadDebugger* debugger)
: m_debugger(debugger),
m_thread(thread),
- m_instrumentingAgents(new InstrumentingAgents()),
- m_networkCapability(networkCapability) {}
+ m_instrumentingAgents(new InstrumentingAgents()) {}
WorkerInspectorController::~WorkerInspectorController() {
DCHECK(!m_thread);
@@ -77,8 +71,6 @@
m_debugger->contextGroupId(m_thread), nullptr);
m_session->append(
new InspectorLogAgent(m_thread->consoleMessageStorage(), nullptr));
- if (m_networkCapability)
- m_session->append(InspectorNetworkAgent::create(nullptr));
m_thread->workerBackingThread().backingThread().addTaskObserver(this);
}

Powered by Google App Engine
This is Rietveld 408576698