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

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

Issue 473553003: DevTools: Process correctly a disconnection during target initialization (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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/main/Main.js
diff --git a/Source/devtools/front_end/main/Main.js b/Source/devtools/front_end/main/Main.js
index 040c995cc7b2fb34afa8f95b46c2ba88513dcb38..12d9778651f7ed09fe74fa1aad8883af6bc3f63c 100644
--- a/Source/devtools/front_end/main/Main.js
+++ b/Source/devtools/front_end/main/Main.js
@@ -318,12 +318,13 @@ WebInspector.Main.prototype = {
},
/**
- * @param {!WebInspector.Target} mainTarget
+ * @param {?WebInspector.Target} target
*/
- _mainTargetCreated: function(mainTarget)
+ _mainTargetCreated: function(target)
{
console.timeStamp("Main._mainTargetCreated");
+ var mainTarget = /** @type {!WebInspector.Target} */(target);
this._registerShortcuts();
WebInspector.workerTargetManager = new WebInspector.WorkerTargetManager(mainTarget, WebInspector.targetManager);
« no previous file with comments | « no previous file | Source/devtools/front_end/sdk/Target.js » ('j') | Source/devtools/front_end/sdk/WorkerTargetManager.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698