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

Unified Diff: third_party/WebKit/Source/devtools/front_end/resources/DatabaseModel.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/DatabaseModel.js
diff --git a/third_party/WebKit/Source/devtools/front_end/resources/DatabaseModel.js b/third_party/WebKit/Source/devtools/front_end/resources/DatabaseModel.js
index 83c0344a63dd6ab5aaec514c85f0c6b43a38af0c..bf735c6a5ec3ae345d1245a22fc4338d3d3be13d 100644
--- a/third_party/WebKit/Source/devtools/front_end/resources/DatabaseModel.js
+++ b/third_party/WebKit/Source/devtools/front_end/resources/DatabaseModel.js
@@ -140,14 +140,6 @@ Resources.DatabaseModel = class extends SDK.SDKModel {
this.target().registerDatabaseDispatcher(new Resources.DatabaseDispatcher(this));
}
- /**
- * @param {!SDK.Target} target
- * @return {!Resources.DatabaseModel}
- */
- static fromTarget(target) {
- return /** @type {!Resources.DatabaseModel} */ (target.model(Resources.DatabaseModel));
- }
-
enable() {
if (this._enabled)
return;

Powered by Google App Engine
This is Rietveld 408576698