diff options
author | jorlow@chromium.org <jorlow@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-26 00:37:06 +0000 |
---|---|---|
committer | jorlow@chromium.org <jorlow@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-26 00:37:06 +0000 |
commit | 35b9be0331299803c6fa724cbe8e416ec593c6fc (patch) | |
tree | e5928c2df4255e4efe6c08399e661892c6d5c28a /chrome/browser/browsing_data_remover.cc | |
parent | 182c44faa58c15e474682f2ad349eca5a6a2235f (diff) | |
download | chromium_src-35b9be0331299803c6fa724cbe8e416ec593c6fc.zip chromium_src-35b9be0331299803c6fa724cbe8e416ec593c6fc.tar.gz chromium_src-35b9be0331299803c6fa724cbe8e416ec593c6fc.tar.bz2 |
For now, let's clear local storage whenever we clear cookies.
BUG=28788
TEST="Clear private data..." from the menu, check cookies, and tell it ok. Data in "Local Storage" inside the profile's data dir should be deleted and any open websites that were using that data should no longer be able to see it.
Review URL: http://codereview.chromium.org/441012
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33162 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browsing_data_remover.cc')
-rw-r--r-- | chrome/browser/browsing_data_remover.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/chrome/browser/browsing_data_remover.cc b/chrome/browser/browsing_data_remover.cc index 652251c..11581b9 100644 --- a/chrome/browser/browsing_data_remover.cc +++ b/chrome/browser/browsing_data_remover.cc @@ -7,6 +7,7 @@ #include "chrome/browser/chrome_thread.h" #include "chrome/browser/download/download_manager.h" #include "chrome/browser/history/history.h" +#include "chrome/browser/in_process_webkit/webkit_context.h" #include "chrome/browser/profile.h" #include "chrome/browser/metrics/user_metrics.h" #include "chrome/browser/net/url_request_context_getter.h" @@ -111,6 +112,7 @@ void BrowsingDataRemover::Remove(int remove_mask) { profile_->GetRequestContext()->GetCookieStore()->GetCookieMonster(); if (cookie_monster) cookie_monster->DeleteAllCreatedBetween(delete_begin_, delete_end_, true); + profile_->GetWebKitContext()->DeleteDataModifiedSince(delete_begin_); } if (remove_mask & REMOVE_PASSWORDS) { |