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

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

Issue 2851913002: [DevTools] Do not expose agents on Target
Patch Set: storage and tests.js Created 3 years, 8 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/ClearStorageView.js
diff --git a/third_party/WebKit/Source/devtools/front_end/resources/ClearStorageView.js b/third_party/WebKit/Source/devtools/front_end/resources/ClearStorageView.js
index 32cc5ff5a26b0b1aa0e2e9e111f22db6b6e4834f..1e6fef5b510014f62882a39711121af47e81bffc 100644
--- a/third_party/WebKit/Source/devtools/front_end/resources/ClearStorageView.js
+++ b/third_party/WebKit/Source/devtools/front_end/resources/ClearStorageView.js
@@ -102,7 +102,8 @@ Resources.ClearStorageView = class extends UI.VBox {
storageTypes.push(type);
}
- this._target.storageAgent().clearDataForOrigin(this._securityOrigin, storageTypes.join(','));
+ var securityOriginManager = this._target.model(SDK.SecurityOriginManager);
+ securityOriginManager.clearDataForSecurityOrigin(this._securityOrigin, storageTypes.join(','));
var set = new Set(storageTypes);
var hasAll = set.has(Protocol.Storage.StorageType.All);

Powered by Google App Engine
This is Rietveld 408576698