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

Unified Diff: third_party/WebKit/Source/core/workers/WorkerInspectorProxy.cpp

Issue 2797253005: Revert of [instrumentation] Turn inspector override "probes" return values into output parameters. (Closed)
Patch Set: Created 3 years, 8 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
« no previous file with comments | « third_party/WebKit/Source/core/probe/CoreProbes.pidl ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/workers/WorkerInspectorProxy.cpp
diff --git a/third_party/WebKit/Source/core/workers/WorkerInspectorProxy.cpp b/third_party/WebKit/Source/core/workers/WorkerInspectorProxy.cpp
index 534db8f9e6de8b7ab7382516f5fa80ccbebfe654..346c38d4e6e246a1d2ee5d5f1c1538d936941a10 100644
--- a/third_party/WebKit/Source/core/workers/WorkerInspectorProxy.cpp
+++ b/third_party/WebKit/Source/core/workers/WorkerInspectorProxy.cpp
@@ -7,7 +7,6 @@
#include "core/frame/FrameConsole.h"
#include "core/inspector/IdentifiersFactory.h"
#include "core/inspector/InspectorTraceEvents.h"
-#include "core/inspector/InspectorWorkerAgent.h"
#include "core/inspector/WorkerInspectorController.h"
#include "core/probe/CoreProbes.h"
#include "core/workers/WorkerGlobalScope.h"
@@ -52,10 +51,9 @@
WorkerThreadStartMode WorkerInspectorProxy::workerStartMode(
Document* document) {
- bool result = false;
- probe::shouldWaitForDebuggerOnWorkerStart(document, &result);
- return result ? PauseWorkerGlobalScopeOnStart
- : DontPauseWorkerGlobalScopeOnStart;
+ if (probe::shouldWaitForDebuggerOnWorkerStart(document))
+ return PauseWorkerGlobalScopeOnStart;
+ return DontPauseWorkerGlobalScopeOnStart;
}
void WorkerInspectorProxy::workerThreadCreated(Document* document,
@@ -67,8 +65,7 @@
inspectorProxies().insert(this);
// We expect everyone starting worker thread to synchronously ask for
// workerStartMode right before.
- bool waitingForDebugger = false;
- probe::shouldWaitForDebuggerOnWorkerStart(document, &waitingForDebugger);
+ bool waitingForDebugger = probe::shouldWaitForDebuggerOnWorkerStart(document);
probe::didStartWorker(document, this, waitingForDebugger);
}
« no previous file with comments | « third_party/WebKit/Source/core/probe/CoreProbes.pidl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698