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

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

Issue 7480041: Adding session-only localStorage. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Adding tests. Created 9 years, 5 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/in_process_webkit/dom_storage_context.cc
diff --git a/content/browser/in_process_webkit/dom_storage_context.cc b/content/browser/in_process_webkit/dom_storage_context.cc
index 3daa66ea5566e670c4ea27da29d7b5be03b16ec6..f4b79fcf2694577290265c4cb29745989fd29755 100644
--- a/content/browser/in_process_webkit/dom_storage_context.cc
+++ b/content/browser/in_process_webkit/dom_storage_context.cc
@@ -48,12 +48,14 @@ const FilePath::CharType DOMStorageContext::kLocalStorageExtension[] =
DOMStorageContext::DOMStorageContext(
WebKitContext* webkit_context,
- quota::SpecialStoragePolicy* special_storage_policy)
+ quota::SpecialStoragePolicy* special_storage_policy,
+ const content::ResourceContext& resource_context)
: last_storage_area_id_(0),
last_session_storage_namespace_id_on_ui_thread_(kLocalStorageNamespaceId),
last_session_storage_namespace_id_on_io_thread_(kLocalStorageNamespaceId),
clear_local_state_on_exit_(false),
- special_storage_policy_(special_storage_policy) {
+ special_storage_policy_(special_storage_policy),
+ resource_context_(resource_context) {
data_path_ = webkit_context->data_path();
}

Powered by Google App Engine
This is Rietveld 408576698