summaryrefslogtreecommitdiffstats
path: root/chrome/browser/profiles/profile_impl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/profiles/profile_impl.cc')
-rw-r--r--chrome/browser/profiles/profile_impl.cc9
1 files changed, 7 insertions, 2 deletions
diff --git a/chrome/browser/profiles/profile_impl.cc b/chrome/browser/profiles/profile_impl.cc
index 7790c47..f838d08 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();
}