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

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

Issue 2914293002: [IndexedDB] [DevTools] Right-click 'Refresh' on database now updates object store view, also fixed … (Closed)
Patch Set: Using await instead Created 3 years, 6 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/ApplicationPanelSidebar.js
diff --git a/third_party/WebKit/Source/devtools/front_end/resources/ApplicationPanelSidebar.js b/third_party/WebKit/Source/devtools/front_end/resources/ApplicationPanelSidebar.js
index 6f7fdec89bc9adc45d7f12355e0ee5435297c799..ba587b067d3237fb286ed511646b7998b5564fbe 100644
--- a/third_party/WebKit/Source/devtools/front_end/resources/ApplicationPanelSidebar.js
+++ b/third_party/WebKit/Source/devtools/front_end/resources/ApplicationPanelSidebar.js
@@ -1176,6 +1176,7 @@ Resources.IDBDatabaseTreeElement = class extends Resources.BaseStorageTreeElemen
this._idbObjectStoreTreeElements = {};
var icon = UI.Icon.create('mediumicon-database', 'resource-tree-item');
this.setLeadingIcons([icon]);
+ this._model.addEventListener(Resources.IndexedDBModel.Events.DatabaseNamesRefreshed, this._refreshIndexedDB, this);
}
get itemURL() {
@@ -1197,7 +1198,7 @@ Resources.IDBDatabaseTreeElement = class extends Resources.BaseStorageTreeElemen
}
_refreshIndexedDB() {
- this._model.refreshDatabaseNames();
+ this._model.refreshDatabase(this._databaseId);
}
/**

Powered by Google App Engine
This is Rietveld 408576698