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

Unified Diff: chrome/browser/ui/webui/browsing_history_handler.cc

Issue 2570253002: [MD History] Fix toolbar dates in grouped mode. (Closed)
Patch Set: address comments Created 4 years 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: chrome/browser/ui/webui/browsing_history_handler.cc
diff --git a/chrome/browser/ui/webui/browsing_history_handler.cc b/chrome/browser/ui/webui/browsing_history_handler.cc
index cd6fd97f57fa259f1fefdc0c1d5adc87ba40cdc1..577cbf3a6a3783800726c9697ac39f72e07e2873 100644
--- a/chrome/browser/ui/webui/browsing_history_handler.cc
+++ b/chrome/browser/ui/webui/browsing_history_handler.cc
@@ -524,6 +524,16 @@ void BrowsingHistoryHandler::OnQueryComplete(
"queryEndTime",
GetRelativeDateLocalized(clock_.get(), query_results_info->end_time));
+ results_info.SetString(
+ "queryStartMonth",
+ TimeFormatMonthAndYear(query_results_info->start_time));
+ results_info.SetString(
+ "queryStartTimeShort",
+ TimeFormatWeekdayMonthAndDay(query_results_info->start_time));
+ results_info.SetString(
+ "queryEndTimeShort",
+ TimeFormatWeekdayMonthAndDay(query_results_info->end_time));
jungshik at Google 2016/12/16 09:08:38 Instead of concatenating two dates, it'd be better
calamity 2016/12/19 04:12:54 But this doesn't allow for a translated word separ
+
web_ui()->CallJavascriptFunctionUnsafe("historyResult", results_info,
results_value);
}
« no previous file with comments | « chrome/browser/resources/md_history/history_toolbar.js ('k') | chrome/test/data/webui/md_history/history_grouped_list_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698