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

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

Issue 1437993003: Revert of [DevTools] Filter any messages from previous sessions in DevToolsAgentHostImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 eef82379c7bb09542842d16ba4f9b7a3b0848eb5..6e1493d99a8c68133dcd112305ca1a9bdb85e9d9 100644
--- a/third_party/WebKit/Source/core/inspector/WorkerInspectorController.cpp
+++ b/third_party/WebKit/Source/core/inspector/WorkerInspectorController.cpp
@@ -65,7 +65,7 @@
explicit PageInspectorProxy(WorkerGlobalScope* workerGlobalScope) : m_workerGlobalScope(workerGlobalScope) { }
~PageInspectorProxy() override { }
private:
- void sendProtocolResponse(int sessionId, int callId, PassRefPtr<JSONObject> message) override
+ void sendProtocolResponse(int callId, PassRefPtr<JSONObject> message) override
{
// Worker messages are wrapped, no need to handle callId.
m_workerGlobalScope->thread()->workerReportingProxy().postMessageToPageInspector(message->toJSONString());
@@ -197,10 +197,8 @@
void WorkerInspectorController::dispatchMessageFromFrontend(const String& message)
{
InspectorTaskRunner::IgnoreInterruptsScope scope(m_inspectorTaskRunner.get());
- if (m_backendDispatcher) {
- // sessionId will be overwritten by WebDevToolsAgent::sendProtocolNotifications call.
- m_backendDispatcher->dispatch(0, message);
- }
+ if (m_backendDispatcher)
+ m_backendDispatcher->dispatch(message);
}
void WorkerInspectorController::dispose()

Powered by Google App Engine
This is Rietveld 408576698