diff options
author | pastarmovj@chromium.org <pastarmovj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-06 12:02:23 +0000 |
---|---|---|
committer | pastarmovj@chromium.org <pastarmovj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-06 12:02:23 +0000 |
commit | 2d0f89a1b3414922704f97c01b373d3a09139dd7 (patch) | |
tree | 86cdcd5f75ef79e8be271405ec5d27856be8ac83 /chrome/browser/browser_process_impl.cc | |
parent | 3a3e66a3e243094e83c829ceccac699076d90e55 (diff) | |
download | chromium_src-2d0f89a1b3414922704f97c01b373d3a09139dd7.zip chromium_src-2d0f89a1b3414922704f97c01b373d3a09139dd7.tar.gz chromium_src-2d0f89a1b3414922704f97c01b373d3a09139dd7.tar.bz2 |
Refactored cookies persistent store clean-up on shutdown.
Changed the static call of SQLitePersistantCookieStore::ClearLocalState to
a call of a virtual method PersistantCookieStore::ClearLocalState from
inside the destruction sequence of the owning UrlRequestContext.
Thus the code will now work with any other persistancy implementation and
allow for better parallelism.
To test. Enable deleting of cookies and user data on shutdown and check if
the Cookies file in the profile directory has been deleted.
BUG=64920
TEST=Manual.
Review URL: http://codereview.chromium.org/5430004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68343 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_process_impl.cc')
-rw-r--r-- | chrome/browser/browser_process_impl.cc | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/chrome/browser/browser_process_impl.cc b/chrome/browser/browser_process_impl.cc index 652f7b90..e260184 100644 --- a/chrome/browser/browser_process_impl.cc +++ b/chrome/browser/browser_process_impl.cc @@ -35,7 +35,6 @@ #include "chrome/browser/net/chrome_net_log.h" #include "chrome/browser/net/predictor_api.h" #include "chrome/browser/net/sdch_dictionary_fetcher.h" -#include "chrome/browser/net/sqlite_persistent_cookie_store.h" #include "chrome/browser/notifications/notification_ui_manager.h" #include "chrome/browser/plugin_service.h" #include "chrome/browser/plugin_updater.h" @@ -504,8 +503,6 @@ bool BrowserProcessImpl::have_inspector_files() const { } void BrowserProcessImpl::ClearLocalState(const FilePath& profile_path) { - SQLitePersistentCookieStore::ClearLocalState(profile_path.Append( - chrome::kCookieFilename)); webkit_database::DatabaseTracker::ClearLocalState(profile_path); ChromeAppCacheService::ClearLocalState(profile_path); } |