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

Unified Diff: third_party/WebKit/Source/devtools/front_end/sdk/DebuggerModel.js

Issue 2137773002: [DevTools] Replace the target type with capabilities (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing the code review comments Created 4 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
Index: third_party/WebKit/Source/devtools/front_end/sdk/DebuggerModel.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sdk/DebuggerModel.js b/third_party/WebKit/Source/devtools/front_end/sdk/DebuggerModel.js
index 67fe2cd8e98be304d61dc18ee9f5dcfa5cc350a2..49ca1888fbe3e85652ed055f11fa06a962b14c97 100644
--- a/third_party/WebKit/Source/devtools/front_end/sdk/DebuggerModel.js
+++ b/third_party/WebKit/Source/devtools/front_end/sdk/DebuggerModel.js
@@ -1286,7 +1286,7 @@ WebInspector.DebuggerModel.instances = function()
*/
WebInspector.DebuggerModel.fromTarget = function(target)
{
- if (!target || !target.hasJSContext())
+ if (!target || !target.hasJSCapability())
return null;
return /** @type {?WebInspector.DebuggerModel} */ (target.model(WebInspector.DebuggerModel));
}

Powered by Google App Engine
This is Rietveld 408576698