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

Unified Diff: chrome/browser/profiles/profile_impl.cc

Issue 7234014: Move code to clear web databases on shutdown to the database tracker (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 6 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 725f476df2147ae48078b62478915b5348b47e4a..22486b0cd6557bb5894c75aedec1ca07f0b78096 100644
--- a/chrome/browser/profiles/profile_impl.cc
+++ b/chrome/browser/profiles/profile_impl.cc
@@ -1318,7 +1318,8 @@ void ProfileImpl::CreateQuotaManagerAndClients() {
GetExtensionSpecialStoragePolicy(),
quota_manager_->proxy());
db_tracker_ = new webkit_database::DatabaseTracker(
- GetPath(), IsOffTheRecord(), GetExtensionSpecialStoragePolicy(),
+ GetPath(), IsOffTheRecord(), clear_local_state_on_exit_,
+ GetExtensionSpecialStoragePolicy(),
quota_manager_->proxy(),
BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE));
webkit_context_ = new WebKitContext(
@@ -1393,6 +1394,10 @@ void ProfileImpl::Observe(NotificationType type,
appcache_service_->SetClearLocalStateOnExit(
clear_local_state_on_exit_);
}
+ if (db_tracker_) {
+ db_tracker_->SetClearLocalStateOnExit(
+ clear_local_state_on_exit_);
+ }
} else if (*pref_name_in == prefs::kGoogleServicesUsername) {
ProfileManager* profile_manager = g_browser_process->profile_manager();
profile_manager->RegisterProfileName(this);

Powered by Google App Engine
This is Rietveld 408576698