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

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

Issue 2654483004: [DevTools] Provide a way to delete Indexed DBs (Closed)
Patch Set: Moved the confirm dialog Created 3 years, 11 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/IndexedDBModel.js
diff --git a/third_party/WebKit/Source/devtools/front_end/resources/IndexedDBModel.js b/third_party/WebKit/Source/devtools/front_end/resources/IndexedDBModel.js
index b336ebfdca202b5deb928957604e95c744da8134..c8bbc66528e6d9dba8f4ba49590d11ff43eb9599 100644
--- a/third_party/WebKit/Source/devtools/front_end/resources/IndexedDBModel.js
+++ b/third_party/WebKit/Source/devtools/front_end/resources/IndexedDBModel.js
@@ -177,6 +177,19 @@ Resources.IndexedDBModel = class extends SDK.SDKModel {
this._addOrigin(origin);
}
+ /**
+ * @param {!Resources.IndexedDBModel.DatabaseId} databaseId
+ */
+ deleteDatabase(databaseId) {
+ if (!this._enabled)
+ return;
+ this._agent.deleteDatabase(databaseId.securityOrigin, databaseId.name, error => {
+ if (error)
+ console.error('Unable to delete ' + databaseId.name, error);
+ this._loadDatabaseNames(databaseId.securityOrigin);
+ });
+ }
+
refreshDatabaseNames() {
for (var securityOrigin in this._databaseNamesBySecurityOrigin)
this._loadDatabaseNames(securityOrigin);

Powered by Google App Engine
This is Rietveld 408576698