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

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: Remove sync operations of 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..86d31c5b60ce9ccecc6d8629db544270918d390e 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();
+ // Updates the last_visited time of TemplateURL to the current time.
+ bool UpdateTemplateURLVisitTime(TemplateURL* url);
Peter Kasting 2016/12/01 07:38:25 This is only public due to being used in a test.
ltian 2016/12/01 10:02:58 Sorry I totally misunderstood of your thought. Wil
+
// 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