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

Unified Diff: Source/devtools/front_end/InspectorBackend.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/devtools.gypi ('k') | Source/devtools/front_end/Main.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/InspectorBackend.js
diff --git a/Source/devtools/front_end/InspectorBackend.js b/Source/devtools/front_end/InspectorBackend.js
index 0702d1f9ab8735fb76baea6a0d5fbd4d917abd35..28fac4238d7072b3ee933953e56e360dfabee11c 100644
--- a/Source/devtools/front_end/InspectorBackend.js
+++ b/Source/devtools/front_end/InspectorBackend.js
@@ -104,7 +104,6 @@ InspectorBackendClass.prototype = {
setConnection: function(connection)
{
this._connection = connection;
- this._connection.initialize(this._agentPrototypes, this._dispatcherPrototypes);
this._connection.registerAgentsOn(window);
for (var type in this._enums) {
@@ -340,6 +339,7 @@ InspectorBackendClass.Connection = function()
this._agents = {};
this._dispatchers = {};
this._callbacks = {};
+ this._initialize(InspectorBackend._agentPrototypes, InspectorBackend._dispatcherPrototypes);
}
InspectorBackendClass.Connection.Events = {
@@ -352,7 +352,7 @@ InspectorBackendClass.Connection.prototype = {
* @param {!Object.<string, !InspectorBackendClass.AgentPrototype>} agentPrototypes
* @param {!Object.<string, !InspectorBackendClass.DispatcherPrototype>} dispatcherPrototypes
*/
- initialize: function(agentPrototypes, dispatcherPrototypes)
+ _initialize: function(agentPrototypes, dispatcherPrototypes)
{
for (var domain in agentPrototypes) {
this._agents[domain] = Object.create(agentPrototypes[domain]);
« no previous file with comments | « Source/devtools/devtools.gypi ('k') | Source/devtools/front_end/Main.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698