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

Unified Diff: third_party/WebKit/Source/devtools/front_end/resources/DOMStorageModel.js

Issue 2782773002: [DevTools] Remove SDKModels' fromTarget methods (Closed)
Patch Set: addressed review comments 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/resources/DOMStorageModel.js
diff --git a/third_party/WebKit/Source/devtools/front_end/resources/DOMStorageModel.js b/third_party/WebKit/Source/devtools/front_end/resources/DOMStorageModel.js
index 1aa6f3a29769829e73c80cb64dad7cdf6541528d..3b18865a4b0822343074bc7ee6d428d6771858df 100644
--- a/third_party/WebKit/Source/devtools/front_end/resources/DOMStorageModel.js
+++ b/third_party/WebKit/Source/devtools/front_end/resources/DOMStorageModel.js
@@ -113,20 +113,12 @@ Resources.DOMStorageModel = class extends SDK.SDKModel {
constructor(target) {
super(target);
- this._securityOriginManager = SDK.SecurityOriginManager.fromTarget(target);
+ this._securityOriginManager = target.model(SDK.SecurityOriginManager);
/** @type {!Object.<string, !Resources.DOMStorage>} */
this._storages = {};
this._agent = target.domstorageAgent();
}
- /**
- * @param {!SDK.Target} target
- * @return {!Resources.DOMStorageModel}
- */
- static fromTarget(target) {
- return /** @type {!Resources.DOMStorageModel} */ (target.model(Resources.DOMStorageModel));
- }
-
enable() {
if (this._enabled)
return;

Powered by Google App Engine
This is Rietveld 408576698