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

Unified Diff: content/browser/in_process_webkit/webkit_context.cc

Issue 7619010: Session-only local storage cleared on exit. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Code review comments (tiny). Created 9 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 | « content/browser/in_process_webkit/webkit_context.h ('k') | webkit/quota/mock_special_storage_policy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/in_process_webkit/webkit_context.cc
diff --git a/content/browser/in_process_webkit/webkit_context.cc b/content/browser/in_process_webkit/webkit_context.cc
index 635991633ef3e05d7a2ae1a83789a6d971fe3c84..8fd9d11965026415b087133b3aa261b784a1fa83 100644
--- a/content/browser/in_process_webkit/webkit_context.cc
+++ b/content/browser/in_process_webkit/webkit_context.cc
@@ -66,6 +66,16 @@ void WebKitContext::DeleteDataModifiedSince(const base::Time& cutoff) {
dom_storage_context_->DeleteDataModifiedSince(cutoff);
}
+void WebKitContext::DeleteSessionOnlyData() {
+ if (!BrowserThread::CurrentlyOn(BrowserThread::WEBKIT)) {
+ BrowserThread::PostTask(
+ BrowserThread::WEBKIT, FROM_HERE,
+ NewRunnableMethod(this, &WebKitContext::DeleteSessionOnlyData));
+ return;
+ }
+
+ dom_storage_context_->DeleteSessionOnlyData();
+}
void WebKitContext::DeleteSessionStorageNamespace(
int64 session_storage_namespace_id) {
« no previous file with comments | « content/browser/in_process_webkit/webkit_context.h ('k') | webkit/quota/mock_special_storage_policy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698