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

Unified Diff: Source/devtools/front_end/sdk/WorkerManager.js

Issue 392603002: DevTools: refactoring connection creation, removing a couple of dead code branches. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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/sdk/InspectorBackend.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/sdk/WorkerManager.js
diff --git a/Source/devtools/front_end/sdk/WorkerManager.js b/Source/devtools/front_end/sdk/WorkerManager.js
index 55326333968484696fb77a0df884de3af65236b5..7c1c23b65e3a29cd06c9bffe522c2b4b38700340 100644
--- a/Source/devtools/front_end/sdk/WorkerManager.js
+++ b/Source/devtools/front_end/sdk/WorkerManager.js
@@ -173,14 +173,12 @@ WebInspector.workerManager;
* @constructor
* @extends {InspectorBackendClass.Connection}
* @param {string} workerId
- * @param {function(!InspectorBackendClass.Connection)} onConnectionReady
*/
-WebInspector.ExternalWorkerConnection = function(workerId, onConnectionReady)
+WebInspector.ExternalWorkerConnection = function(workerId)
{
InspectorBackendClass.Connection.call(this);
this._workerId = workerId;
window.addEventListener("message", this._processMessage.bind(this), true);
- onConnectionReady(this);
}
WebInspector.ExternalWorkerConnection.prototype = {
« no previous file with comments | « Source/devtools/front_end/sdk/InspectorBackend.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698