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

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

Issue 201123007: DevTools: Create target per each worker behind experiment (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase on master 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
« no previous file with comments | « Source/devtools/front_end/InspectorBackend.js ('k') | Source/devtools/front_end/Target.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/Main.js
diff --git a/Source/devtools/front_end/Main.js b/Source/devtools/front_end/Main.js
index a4bdd4ef9af733fea8f0669f2280c22bb09c65e4..e9124be16b66867cb28d42f50f4758b36929c837 100644
--- a/Source/devtools/front_end/Main.js
+++ b/Source/devtools/front_end/Main.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;
}
@@ -256,6 +256,9 @@ WebInspector.Main.prototype = {
WebInspector.shortcutsScreen.section(WebInspector.UIString("Elements Panel"));
WebInspector.ShortcutsScreen.registerShortcuts();
+ if (WebInspector.experimentsSettings.workersInMainWindow.isEnabled())
+ new WebInspector.WorkerTargetManager(mainTarget, WebInspector.targetManager);
+
WebInspector.console.addEventListener(WebInspector.ConsoleModel.Events.ConsoleCleared, this._resetErrorAndWarningCounts, this);
WebInspector.console.addEventListener(WebInspector.ConsoleModel.Events.MessageAdded, this._updateErrorAndWarningCounts, this);
WebInspector.console.addEventListener(WebInspector.ConsoleModel.Events.RepeatCountUpdated, this._updateErrorAndWarningCounts, this);
« no previous file with comments | « Source/devtools/front_end/InspectorBackend.js ('k') | Source/devtools/front_end/Target.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698