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

Unified Diff: components/search_engines/template_url_prepopulate_data.cc

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_prepopulate_data.cc
diff --git a/components/search_engines/template_url_prepopulate_data.cc b/components/search_engines/template_url_prepopulate_data.cc
index 0eaa075f75ab7620fdd54c9e401934354058dcb9..cdcef535d6bc969b50566f2743a333e5a86aae90 100644
--- a/components/search_engines/template_url_prepopulate_data.cc
+++ b/components/search_engines/template_url_prepopulate_data.cc
@@ -1013,6 +1013,7 @@ std::unique_ptr<TemplateURLData> MakePrepopulatedTemplateURLData(
data->input_encodings.push_back(encoding.as_string());
data->date_created = base::Time();
data->last_modified = base::Time();
+ data->last_visited = base::Time();
Peter Kasting 2016/11/21 03:35:08 Nit: See comments in settings_overrides_api.cc
ltian 2016/11/28 22:08:02 Done.
data->prepopulate_id = id;
for (size_t i = 0; i < alternate_urls.GetSize(); ++i) {
std::string alternate_url;

Powered by Google App Engine
This is Rietveld 408576698