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

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

Issue 1314853006: DevTools: expose wired front-end API for editors interop [blink] (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 3 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/main/FrontendWebSocketAPI.js ('k') | Source/devtools/front_end/main/module.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/main/Main.js
diff --git a/Source/devtools/front_end/main/Main.js b/Source/devtools/front_end/main/Main.js
index 8464ef06df25c000f0369e6ae8575ae16c3826e4..74bbd009c0c95c1733df19847e672d1a8ae79adf 100644
--- a/Source/devtools/front_end/main/Main.js
+++ b/Source/devtools/front_end/main/Main.js
@@ -322,6 +322,7 @@ WebInspector.Main.prototype = {
console.timeStamp("Main._mainTargetCreated");
this._mainTarget = /** @type {!WebInspector.Target} */(target);
this._registerShortcuts();
+ var main = this;
this._mainTarget.registerInspectorDispatcher(this);
InspectorFrontendHost.events.addEventListener(InspectorFrontendHostAPI.Events.ReloadInspectedPage, this._reloadInspectedPage, this);
@@ -344,7 +345,13 @@ WebInspector.Main.prototype = {
console.timeStamp("Main.inspectorAgentEnableCallback");
WebInspector.notifications.dispatchEventToListeners(WebInspector.NotificationService.Events.InspectorAgentEnabledForTests);
// Asynchronously run the extensions.
- setTimeout(function() { WebInspector.extensionServer.initializeExtensions(); }, 0);
+ setTimeout(lateInitialization, 0);
+ }
+
+ function lateInitialization()
+ {
+ WebInspector.extensionServer.initializeExtensions();
+ new WebInspector.FrontendWebSocketAPI();
}
},
« no previous file with comments | « Source/devtools/front_end/main/FrontendWebSocketAPI.js ('k') | Source/devtools/front_end/main/module.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698