diff options
author | jorlow@chromium.org <jorlow@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-13 05:05:24 +0000 |
---|---|---|
committer | jorlow@chromium.org <jorlow@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-13 05:05:24 +0000 |
commit | 8f51d68fb92cd74f374edc44347abe5000cbd2ec (patch) | |
tree | 48f8820cfc3019d421286cc2f70e9877696a7d86 /chrome/browser/browsing_data_remover.cc | |
parent | bd92c3aee82e619df3526b4d971b706ab070167c (diff) | |
download | chromium_src-8f51d68fb92cd74f374edc44347abe5000cbd2ec.zip chromium_src-8f51d68fb92cd74f374edc44347abe5000cbd2ec.tar.gz chromium_src-8f51d68fb92cd74f374edc44347abe5000cbd2ec.tar.bz2 |
Adds "Delete Local Storage" option to "Clear Browsing Data" for Windows and GTK.
NOTE: This change does not contain src/chrome/app/nibs/ClearBrowsingData.xib. It'll be edited by someone who knows about Mac.
BUG=none
TEST=The clear browser data dialog box should have a new option: Delete local storage"
Landing for Marcus
Original CL: http://codereview.chromium.org/524026
Review URL: http://codereview.chromium.org/542048
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36098 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browsing_data_remover.cc')
-rw-r--r-- | chrome/browser/browsing_data_remover.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/browsing_data_remover.cc b/chrome/browser/browsing_data_remover.cc index 11581b9..958d298 100644 --- a/chrome/browser/browsing_data_remover.cc +++ b/chrome/browser/browsing_data_remover.cc @@ -112,6 +112,10 @@ void BrowsingDataRemover::Remove(int remove_mask) { profile_->GetRequestContext()->GetCookieStore()->GetCookieMonster(); if (cookie_monster) cookie_monster->DeleteAllCreatedBetween(delete_begin_, delete_end_, true); + } + + if (remove_mask & REMOVE_LOCAL_STORAGE) { + UserMetrics::RecordAction("ClearBrowsingData_LocalStorage", profile_); profile_->GetWebKitContext()->DeleteDataModifiedSince(delete_begin_); } |