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

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

Issue 2570253002: [MD History] Fix toolbar dates in grouped mode. (Closed)
Patch Set: rebase Created 3 years, 11 months 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
« no previous file with comments | « chrome/browser/resources/md_history/list_container.html ('k') | chrome/browser/ui/webui/history_ui.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 eb66d52a23120c92befb90d71ad7862a9ea16eab..a951127e171211f48d21c04258d63c22e13a3f47 100644
--- a/chrome/browser/ui/webui/browsing_history_handler.cc
+++ b/chrome/browser/ui/webui/browsing_history_handler.cc
@@ -14,7 +14,6 @@
#include "base/i18n/rtl.h"
#include "base/i18n/time_formatting.h"
#include "base/logging.h"
-#include "base/memory/ptr_util.h"
#include "base/strings/string16.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/utf_string_conversions.h"
@@ -523,6 +522,15 @@ void BrowsingHistoryHandler::OnQueryComplete(
"queryEndTime",
GetRelativeDateLocalized(clock_.get(), query_results_info->end_time));
+ results_info.SetString(
+ "queryStartMonth",
+ base::TimeFormatMonthAndYear(query_results_info->start_time));
+ results_info.SetString(
+ "queryInterval",
+ base::DateIntervalFormat(query_results_info->start_time,
+ query_results_info->end_time,
+ base::DATE_FORMAT_MONTH_WEEKDAY_DAY));
+
web_ui()->CallJavascriptFunctionUnsafe("historyResult", results_info,
results_value);
}
« no previous file with comments | « chrome/browser/resources/md_history/list_container.html ('k') | chrome/browser/ui/webui/history_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698