diff options
author | jochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-11 00:25:44 +0000 |
---|---|---|
committer | jochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-11 00:25:44 +0000 |
commit | 5c7d31039418729ead280f6af57e03843af1e0d8 (patch) | |
tree | 4ab9deb16cf0dbe486404dc943152ecf0bc700c2 /chrome/browser/browsing_data_remover.cc | |
parent | 4e7b270d23b982556c23ffe5b22172ebdc45b4e7 (diff) | |
download | chromium_src-5c7d31039418729ead280f6af57e03843af1e0d8.zip chromium_src-5c7d31039418729ead280f6af57e03843af1e0d8.tar.gz chromium_src-5c7d31039418729ead280f6af57e03843af1e0d8.tar.bz2 |
Add option to delete browsing history of the last hour.
BUG=35302
TEST=manually test
Review URL: http://codereview.chromium.org/596047
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38721 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browsing_data_remover.cc')
-rw-r--r-- | chrome/browser/browsing_data_remover.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/browser/browsing_data_remover.cc b/chrome/browser/browsing_data_remover.cc index 312297f..a350ae5 100644 --- a/chrome/browser/browsing_data_remover.cc +++ b/chrome/browser/browsing_data_remover.cc @@ -199,6 +199,9 @@ base::Time BrowsingDataRemover::CalculateBeginDeleteTime( base::TimeDelta diff; base::Time delete_begin_time = base::Time::Now(); switch (time_period) { + case LAST_HOUR: + diff = base::TimeDelta::FromHours(1); + break; case LAST_DAY: diff = base::TimeDelta::FromHours(24); break; |