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

Unified Diff: Source/devtools/front_end/inspector.js

Issue 201123007: DevTools: Create target per each worker behind experiment (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Address vsevik's comments Created 6 years, 9 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: Source/devtools/front_end/inspector.js
diff --git a/Source/devtools/front_end/inspector.js b/Source/devtools/front_end/inspector.js
index 590a0fad33bc3144f4d5fb6c8ff772328d37789b..ab833e9640633fdd5c35cbd35bd26077d9eb536d 100644
--- a/Source/devtools/front_end/inspector.js
+++ b/Source/devtools/front_end/inspector.js
@@ -188,7 +188,7 @@ WebInspector.Main.prototype = {
var workerId = WebInspector.queryParam("dedicatedWorkerId");
if (workerId) {
- new WebInspector.WorkerConnection(workerId, onConnectionReady);
+ new WebInspector.ExternalWorkerConnection(workerId, onConnectionReady);
return;
}
@@ -351,6 +351,9 @@ WebInspector.Main.prototype = {
WebInspector.domStorageModel = new WebInspector.DOMStorageModel();
WebInspector.cpuProfilerModel = new WebInspector.CPUProfilerModel();
+ if (WebInspector.experimentsSettings.workersInMainWindow.isEnabled())
vsevik 2014/03/19 16:33:39 Let's move this to the beginning of the method.
sergeyv 2014/03/19 16:43:50 Done.
+ new WebInspector.WorkerTargetManager(mainTarget, WebInspector.targetManager);
+
InspectorAgent.enable(inspectorAgentEnableCallback.bind(this));
/**

Powered by Google App Engine
This is Rietveld 408576698