Index: chrome/browser/ui/webui/history_ui.cc |
diff --git a/chrome/browser/ui/webui/history_ui.cc b/chrome/browser/ui/webui/history_ui.cc |
index 1aeb6be92a572f830454a4e8547bc4aca9f94fb0..43eed3dac903b07451df1dd5e5635b4c142650b3 100644 |
--- a/chrome/browser/ui/webui/history_ui.cc |
+++ b/chrome/browser/ui/webui/history_ui.cc |
@@ -8,6 +8,7 @@ |
#include "base/bind.h" |
#include "base/bind_helpers.h" |
+#include "base/command_line.h" |
#include "base/i18n/rtl.h" |
#include "base/i18n/time_formatting.h" |
#include "base/memory/singleton.h" |
@@ -35,6 +36,7 @@ |
#include "chrome/browser/ui/webui/chrome_web_ui_data_source.h" |
#include "chrome/browser/ui/webui/favicon_source.h" |
#include "chrome/common/chrome_notification_types.h" |
+#include "chrome/common/chrome_switches.h" |
#include "chrome/common/time_format.h" |
#include "chrome/common/url_constants.h" |
#include "content/public/browser/notification_details.h" |
@@ -117,6 +119,7 @@ content::WebUIDataSource* CreateHistoryUIHTMLSource() { |
source->AddLocalizedString("history", IDS_HISTORY_BROWSERESULTS); |
source->AddLocalizedString("cont", IDS_HISTORY_CONTINUED); |
source->AddLocalizedString("searchbutton", IDS_HISTORY_SEARCH_BUTTON); |
+ source->AddLocalizedString("nosearchresults", IDS_HISTORY_NO_SEARCH_RESULTS); |
source->AddLocalizedString("noresults", IDS_HISTORY_NO_RESULTS); |
source->AddLocalizedString("noitems", IDS_HISTORY_NO_ITEMS); |
source->AddLocalizedString("edithistory", IDS_HISTORY_START_EDITING_HISTORY); |
@@ -137,6 +140,12 @@ content::WebUIDataSource* CreateHistoryUIHTMLSource() { |
source->AddResourcePath(kHistoryJsFile, IDR_HISTORY_JS); |
source->SetDefaultResource(IDR_HISTORY_HTML); |
source->SetUseJsonJSFormatV2(); |
+ source->AddLocalizedString("displayfiltersites", IDS_GROUP_BY_DOMAIN_LABEL); |
+ source->AddLocalizedString("numbervisits", IDS_HISTORY_NUMBER_VISITS); |
+ source->AddBoolean("groupByDomain", |
+ CommandLine::ForCurrentProcess()->HasSwitch( |
+ switches::kHistoryEnableGroupByDomain)); |
+ |
return source; |
} |