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

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: Test fix (illegal dependency). 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..278c2491dc910d863e4beb87c48648b9f28cf277 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
@@ -828,7 +831,8 @@ ExtensionEventRouter* ProfileImpl::GetExtensionEventRouter() {
ExtensionSpecialStoragePolicy*
ProfileImpl::GetExtensionSpecialStoragePolicy() {
if (!extension_special_storage_policy_.get())
Miranda Callahan 2011/08/19 11:11:10 nit: add { } around this if clause, as it now exte
marja 2011/08/19 11:23:46 Done.
- extension_special_storage_policy_ = new ExtensionSpecialStoragePolicy();
+ 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