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

Unified Diff: content/browser/dom_storage/dom_storage_area.cc

Issue 1953703004: Purge browser cache for dom storage in a smarter way (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@dom_storage
Patch Set: Created 4 years, 7 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: content/browser/dom_storage/dom_storage_area.cc
diff --git a/content/browser/dom_storage/dom_storage_area.cc b/content/browser/dom_storage/dom_storage_area.cc
index 26e984b0b2b19ebe9a15cd2190b5a5bad3b282be..6c1021c831e54cb7746cb81ed15d675590949188 100644
--- a/content/browser/dom_storage/dom_storage_area.cc
+++ b/content/browser/dom_storage/dom_storage_area.cc
@@ -303,6 +303,11 @@ void DOMStorageArea::DeleteOrigin() {
}
}
+void DOMStorageArea::TrimDatabase() {
+ if (backing_)
michaeln 2016/05/09 21:50:31 There are some complications that i think make thi
ssid 2016/05/10 02:04:15 Thanks, I didn't realize this issue. Yes, post tas
+ backing_->TrimDatabase();
+}
+
void DOMStorageArea::PurgeMemory() {
DCHECK(!is_shutdown_);
// Purging sessionStorage is not supported; it won't work with FastClear.

Powered by Google App Engine
This is Rietveld 408576698