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(); |
} |