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

Unified Diff: components/search_engines/template_url_service.h

Issue 2498053002: Add field to monitor last visited time for each search engine (Closed)
Patch Set: Add unit test for last_visited field. Created 4 years, 1 month 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 801ca6364295522dc093aff93e476256ab2f7a01..2ebf9147b63e24242a534a532eb4da7e8b7c9a37 100644
--- a/components/search_engines/template_url_service.h
+++ b/components/search_engines/template_url_service.h
@@ -288,6 +288,9 @@ class TemplateURLService : public WebDataServiceConsumer,
// prepopulate data.
void RepairPrepopulatedSearchEngines();
+ // Update the last_visited time of TemplateURL to current time.
Peter Kasting 2016/11/21 03:35:08 Nit: Comments should be declarative ("Updates") ra
ltian 2016/11/28 22:08:02 Done.
+ void UpdateTemplateURLVisitTime(TemplateURL* url);
+
// Observers used to listen for changes to the model.
// TemplateURLService does NOT delete the observers when deleted.
void AddObserver(TemplateURLServiceObserver* observer);

Powered by Google App Engine
This is Rietveld 408576698