Add field to monitor last visited time for each search engine
1. Add the last_visited field in template_url_data to monitor last
visited time of each search engine.
2. The last_visited will be updated to current time each time the OpenSearch
description document is detected.
3. For now, last_visited will not be synced if the template_url is
existed.
BUG=348360
Review-Url: https://codereview.chromium.org/2498053002
Cr-Commit-Position: refs/heads/master@{#436079}
diff --git a/components/search_engines/template_url_data.h b/components/search_engines/template_url_data.h
index 4b3479a..93088a8d 100644
--- a/components/search_engines/template_url_data.h
+++ b/components/search_engines/template_url_data.h
@@ -110,6 +110,11 @@
// NOTE: Like date_created above, this may be 0.
base::Time last_modified;
+ // Date when this TemplateURL was last visited.
+ //
+ // NOTE: This might be 0 if the TemplateURL has never been visited.
+ base::Time last_visited;
+
// True if this TemplateURL was automatically created by the administrator via
// group policy.
bool created_by_policy;