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

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: 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
Index: chrome/browser/profiles/profile_impl.cc
diff --git a/chrome/browser/profiles/profile_impl.cc b/chrome/browser/profiles/profile_impl.cc
index a7f2ac74986e250abe8936528b922756a6ae5dc9..7c0d0848884e606d986512b50fcc99405254f9a8 100644
--- a/chrome/browser/profiles/profile_impl.cc
+++ b/chrome/browser/profiles/profile_impl.cc
@@ -664,6 +664,9 @@ ProfileImpl::~ProfileImpl() {
true));
}
+ if (webkit_context_.get())
+ webkit_context_->DeleteSessionOnlyData();
+
StopCreateSessionServiceTimer();
// Remove pref observers
@@ -829,7 +832,8 @@ ExtensionEventRouter* ProfileImpl::GetExtensionEventRouter() {
ExtensionSpecialStoragePolicy*
ProfileImpl::GetExtensionSpecialStoragePolicy() {
if (!extension_special_storage_policy_.get())
- extension_special_storage_policy_ = new ExtensionSpecialStoragePolicy();
+ extension_special_storage_policy_ =
+ new ExtensionSpecialStoragePolicy(GetHostContentSettingsMap());
return extension_special_storage_policy_.get();
}

Powered by Google App Engine
This is Rietveld 408576698