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

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

Issue 11975053: History: Add option to group visits by domain (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Replace images with characters and minor fix. Created 7 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
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;
}

Powered by Google App Engine
This is Rietveld 408576698