Index: content/browser/browser_context.cc |
diff --git a/content/browser/browser_context.cc b/content/browser/browser_context.cc |
index 19dcf236104ed73e3bd5601d79d6cd48cc8a113c..743286d097b285041da2b549708d56826e577f7d 100644 |
--- a/content/browser/browser_context.cc |
+++ b/content/browser/browser_context.cc |
@@ -86,7 +86,8 @@ void CreateQuotaManagerAndClients(BrowserContext* context) { |
FilePath path = context->IsOffTheRecord() ? FilePath() : context->GetPath(); |
scoped_refptr<DOMStorageContextImpl> dom_storage_context = |
- new DOMStorageContextImpl(path, context->GetSpecialStoragePolicy()); |
+ new DOMStorageContextImpl(path, context->GetSpecialStoragePolicy(), |
+ context->ShouldSaveSessionStorageOnDisk()); |
jam
2012/07/11 15:51:35
how about instead of adding a method to the Browse
jochen (gone - plz use gerrit)
2012/07/11 17:52:16
Cookies are a bad role model here: in contrast to
jam
2012/07/11 21:40:28
I see. It seems that this can be changed so that i
marja
2012/07/12 09:22:03
Done.
|
context->SetUserData( |
kDOMStorageContextKeyName, |
new UserDataAdapter<DOMStorageContextImpl>(dom_storage_context)); |
@@ -268,4 +269,8 @@ BrowserContext::~BrowserContext() { |
GetDownloadManager(this)->Shutdown(); |
} |
+bool BrowserContext::ShouldSaveSessionStorageOnDisk() const { |
+ return false; |
+} |
+ |
} // namespace content |