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

Unified Diff: chrome/browser/automation/testing_automation_provider.cc

Issue 10806034: Ability to clear old history Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 5 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
« no previous file with comments | « chrome/browser/automation/automation_provider.cc ('k') | chrome/browser/browsing_data_remover.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/automation/testing_automation_provider.cc
diff --git a/chrome/browser/automation/testing_automation_provider.cc b/chrome/browser/automation/testing_automation_provider.cc
index 01a39e44a743d44a64c66b6cd6c04367843c625b..7aa8f638304b73ef46b9ece75328c5d23f12224f 100644
--- a/chrome/browser/automation/testing_automation_provider.cc
+++ b/chrome/browser/automation/testing_automation_provider.cc
@@ -3630,6 +3630,14 @@ void TestingAutomationProvider::ClearBrowsingData(
string_to_time_period["LAST_DAY"] = BrowsingDataRemover::LAST_DAY;
string_to_time_period["LAST_WEEK"] = BrowsingDataRemover::LAST_WEEK;
string_to_time_period["FOUR_WEEKS"] = BrowsingDataRemover::FOUR_WEEKS;
+ string_to_time_period["EXCEPT_LAST_HOUR"] =
+ BrowsingDataRemover::EXCEPT_LAST_HOUR;
+ string_to_time_period["EXCEPT_LAST_DAY"] =
+ BrowsingDataRemover::EXCEPT_LAST_DAY;
+ string_to_time_period["EXCEPT_LAST_WEEK"] =
+ BrowsingDataRemover::EXCEPT_LAST_WEEK;
+ string_to_time_period["EXCEPT_FOUR_WEEKS"] =
+ BrowsingDataRemover::EXCEPT_FOUR_WEEKS;
string_to_time_period["EVERYTHING"] = BrowsingDataRemover::EVERYTHING;
std::map<std::string, int> string_to_mask_value;
@@ -3670,7 +3678,7 @@ void TestingAutomationProvider::ClearBrowsingData(
}
BrowsingDataRemover* remover = new BrowsingDataRemover(
- profile(), string_to_time_period[time_period], base::Time());
+ profile(), string_to_time_period[time_period]);
remover->AddObserver(
new AutomationProviderBrowsingDataObserver(this, reply_message));
« no previous file with comments | « chrome/browser/automation/automation_provider.cc ('k') | chrome/browser/browsing_data_remover.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698