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

Unified Diff: third_party/WebKit/Source/devtools/front_end/object_ui/JavaScriptAutocomplete.js

Issue 2752403002: [DevTools] Migrate usages of Target to RuntimeModel where makes sense (Closed)
Patch Set: review comments addressed Created 3 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
Index: third_party/WebKit/Source/devtools/front_end/object_ui/JavaScriptAutocomplete.js
diff --git a/third_party/WebKit/Source/devtools/front_end/object_ui/JavaScriptAutocomplete.js b/third_party/WebKit/Source/devtools/front_end/object_ui/JavaScriptAutocomplete.js
index 074fcc34e55a197da273a2e36a2b31dc0efad3c6..04ed56fa04b84ffc36c8debd891cdd616a180919 100644
--- a/third_party/WebKit/Source/devtools/front_end/object_ui/JavaScriptAutocomplete.js
+++ b/third_party/WebKit/Source/devtools/front_end/object_ui/JavaScriptAutocomplete.js
@@ -327,7 +327,7 @@ ObjectUI.JavaScriptAutocomplete.completionsForExpression = function(expressionSt
* @param {!Protocol.Runtime.ExceptionDetails=} exceptionDetails
*/
function receivedPropertyNamesFromEval(result, exceptionDetails) {
- executionContext.target().runtimeModel.releaseObjectGroup('completion');
+ executionContext.runtimeModel.releaseObjectGroup('completion');
if (result && !exceptionDetails)
receivedPropertyNames(/** @type {!Object} */ (result.value));
else
@@ -338,7 +338,7 @@ ObjectUI.JavaScriptAutocomplete.completionsForExpression = function(expressionSt
* @param {?Object} object
*/
function receivedPropertyNames(object) {
- executionContext.target().runtimeModel.releaseObjectGroup('completion');
+ executionContext.runtimeModel.releaseObjectGroup('completion');
if (!object) {
fulfill([]);
return;

Powered by Google App Engine
This is Rietveld 408576698