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

Unified Diff: Source/devtools/front_end/DOMStorage.js

Issue 22396002: function storageForId() should be used in _domStorageItemUpdated instead of DOMStorageModel._storag… (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 4 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
« no previous file with comments | « LayoutTests/inspector/storage-panel-dom-storage-update-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/DOMStorage.js
diff --git a/Source/devtools/front_end/DOMStorage.js b/Source/devtools/front_end/DOMStorage.js
index 0cbe6ee9d609b78b4d08b5ef320a7fc9ca3005c2..fc68b6a307f0b46e20e25cd16d21d191fc5e985a 100644
--- a/Source/devtools/front_end/DOMStorage.js
+++ b/Source/devtools/front_end/DOMStorage.js
@@ -315,6 +315,7 @@ WebInspector.DOMStorageHistory.prototype = {
*/
WebInspector.DOMStorageModel = function()
{
+ /** @type {!Object.<string, !WebInspector.DOMStorage>} */
this._storages = {};
InspectorBackend.registerDOMStorageDispatcher(new WebInspector.DOMStorageDispatcher(this));
DOMStorageAgent.enable();
@@ -431,7 +432,7 @@ WebInspector.DOMStorageModel.prototype = {
*/
_domStorageItemUpdated: function(storageId, key, oldValue, newValue)
{
- var domStorage = this._storages[storageId];
+ var domStorage = this.storageForId(storageId);
var storageData = {
storage: domStorage,
key: key,
« no previous file with comments | « LayoutTests/inspector/storage-panel-dom-storage-update-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698