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

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

Issue 2201623002: [DevTools] Move WorkerInspectorController to WorkerThread. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@can-execute-scripts
Patch Set: rebased Created 4 years, 4 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/InspectorSession.cpp
diff --git a/third_party/WebKit/Source/core/inspector/InspectorSession.cpp b/third_party/WebKit/Source/core/inspector/InspectorSession.cpp
index 3ee9e39fdbeeb20cd7bbb605c29b8dbe67429821..4309e5d83bb499da4f9ff5f3747c4533e470724d 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorSession.cpp
+++ b/third_party/WebKit/Source/core/inspector/InspectorSession.cpp
@@ -19,11 +19,10 @@ namespace {
const char kV8StateKey[] = "v8";
}
-InspectorSession::InspectorSession(Client* client, InstrumentingAgents* instrumentingAgents, int sessionId, bool autoFlush, V8Inspector* inspector, int contextGroupId, const String* savedState)
+InspectorSession::InspectorSession(Client* client, InstrumentingAgents* instrumentingAgents, int sessionId, V8Inspector* inspector, int contextGroupId, const String* savedState)
: m_client(client)
, m_v8Session(nullptr)
, m_sessionId(sessionId)
- , m_autoFlush(autoFlush)
, m_disposed(false)
, m_instrumentingAgents(instrumentingAgents)
, m_inspectorBackendDispatcher(new protocol::UberDispatcher(this))
@@ -105,10 +104,7 @@ void InspectorSession::sendProtocolNotification(const protocol::String16& messag
{
if (m_disposed)
return;
- if (m_autoFlush)
- m_client->sendProtocolMessage(m_sessionId, 0, message, String());
- else
- m_notificationQueue.append(message);
+ m_notificationQueue.append(message);
}
void InspectorSession::flushProtocolNotifications()

Powered by Google App Engine
This is Rietveld 408576698