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

Unified Diff: webkit/dom_storage/dom_storage_context.cc

Issue 10572015: Session restore: Store and restore persistent IDs for sessionStorage. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 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: webkit/dom_storage/dom_storage_context.cc
diff --git a/webkit/dom_storage/dom_storage_context.cc b/webkit/dom_storage/dom_storage_context.cc
index b8a8234cf38f622c92caa5e43235a35a3f4f2271..c8c55b1a815956c3c9a289dc1ce08fc26138d5aa 100644
--- a/webkit/dom_storage/dom_storage_context.cc
+++ b/webkit/dom_storage/dom_storage_context.cc
@@ -189,8 +189,9 @@ void DomStorageContext::CreateSessionNamespace(
}
void DomStorageContext::DeleteSessionNamespace(
- int64 namespace_id) {
+ int64 namespace_id, bool should_persist_data) {
DCHECK_NE(kLocalStorageNamespaceId, namespace_id);
+ // TODO(marja): Protect the sessionStorage data (once it's written on disk).
namespaces_.erase(namespace_id);
}

Powered by Google App Engine
This is Rietveld 408576698