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

Unified Diff: third_party/WebKit/Source/devtools/front_end/object_ui/CustomPreviewComponent.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/CustomPreviewComponent.js
diff --git a/third_party/WebKit/Source/devtools/front_end/object_ui/CustomPreviewComponent.js b/third_party/WebKit/Source/devtools/front_end/object_ui/CustomPreviewComponent.js
index 22bc62dd11645c5f4a48356f4ea82356a1f150b1..d8c31e383c929b55895fdaa845fbb6b253dc3415 100644
--- a/third_party/WebKit/Source/devtools/front_end/object_ui/CustomPreviewComponent.js
+++ b/third_party/WebKit/Source/devtools/front_end/object_ui/CustomPreviewComponent.js
@@ -90,7 +90,7 @@ ObjectUI.CustomPreviewSection = class {
_layoutObjectTag(objectTag) {
objectTag.shift();
var attributes = objectTag.shift();
- var remoteObject = this._object.target().runtimeModel.createRemoteObject(
+ var remoteObject = this._object.runtimeModel().createRemoteObject(
/** @type {!Protocol.Runtime.RemoteObject} */ (attributes));
if (remoteObject.customPreview())
return (new ObjectUI.CustomPreviewSection(remoteObject)).element();

Powered by Google App Engine
This is Rietveld 408576698