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

Unified Diff: chrome/browser/profiles/profile_impl.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 | « chrome/browser/extensions/mock_extension_special_storage_policy.cc ('k') | chrome/chrome_tests.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/profile_impl.cc
diff --git a/chrome/browser/profiles/profile_impl.cc b/chrome/browser/profiles/profile_impl.cc
index 7790c4785b46b5040acf81ea2ffbae9609b36658..f838d089c3b5ca464a47ea29bc1543f7a04efe42 100644
--- a/chrome/browser/profiles/profile_impl.cc
+++ b/chrome/browser/profiles/profile_impl.cc
@@ -663,6 +663,9 @@ ProfileImpl::~ProfileImpl() {
true));
}
+ if (webkit_context_.get())
+ webkit_context_->DeleteSessionOnlyData();
+
StopCreateSessionServiceTimer();
// Remove pref observers
@@ -827,8 +830,10 @@ ExtensionEventRouter* ProfileImpl::GetExtensionEventRouter() {
ExtensionSpecialStoragePolicy*
ProfileImpl::GetExtensionSpecialStoragePolicy() {
- if (!extension_special_storage_policy_.get())
- extension_special_storage_policy_ = new ExtensionSpecialStoragePolicy();
+ if (!extension_special_storage_policy_.get()) {
+ extension_special_storage_policy_ =
+ new ExtensionSpecialStoragePolicy(GetHostContentSettingsMap());
+ }
return extension_special_storage_policy_.get();
}
« no previous file with comments | « chrome/browser/extensions/mock_extension_special_storage_policy.cc ('k') | chrome/chrome_tests.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698