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

Unified Diff: components/search_engines/template_url_service.h

Issue 2289853002: Extend the origin-based deletion in TemplateURLService to an URL filter (Closed)
Patch Set: Addressed comments. Created 4 years, 4 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
Index: components/search_engines/template_url_service.h
diff --git a/components/search_engines/template_url_service.h b/components/search_engines/template_url_service.h
index 06124c5d6c1e5c12edb6950c55fd4b07291fd812..a4ce879412ff15f1efa210248a09ce65de6e5899 100644
--- a/components/search_engines/template_url_service.h
+++ b/components/search_engines/template_url_service.h
@@ -202,11 +202,12 @@ class TemplateURLService : public WebDataServiceConsumer,
base::Time created_before);
// Removes all auto-generated keywords that were created in the specified
- // range for a specified |origin|. If |origin| is empty, deletes all
+ // range and match |url_filter|. If |url_filter| is_null(), deletes all
// auto-generated keywords in the range.
- void RemoveAutoGeneratedForOriginBetween(const GURL& origin,
- base::Time created_after,
- base::Time created_before);
+ void RemoveAutoGeneratedForUrlsBetween(
+ const base::Callback<bool(const GURL&)>& url_filter,
+ base::Time created_after,
+ base::Time created_before);
// Adds a TemplateURL for an extension with an omnibox keyword.
// Only 1 keyword is allowed for a given extension. If a keyword
« no previous file with comments | « chrome/browser/search_engines/template_url_service_unittest.cc ('k') | components/search_engines/template_url_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698