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

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

Issue 2751653004: MD History: re-use history host constant from content/ instead of duplicating to chrome/ (Closed)
Patch Set: merge Created 3 years, 9 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/md_history_ui.cc
diff --git a/chrome/browser/ui/webui/md_history_ui.cc b/chrome/browser/ui/webui/md_history_ui.cc
index 7ef8b01a3460c9d5c4e5e31491c54b26ebb20ec8..7462e6253b08fc78d3a5d0d15e9c7539cc544cfe 100644
--- a/chrome/browser/ui/webui/md_history_ui.cc
+++ b/chrome/browser/ui/webui/md_history_ui.cc
@@ -30,6 +30,7 @@
#include "components/strings/grit/components_strings.h"
#include "content/public/browser/web_ui.h"
#include "content/public/browser/web_ui_data_source.h"
+#include "content/public/common/url_constants.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/resource/resource_bundle.h"
@@ -51,7 +52,7 @@ bool MenuPromoShown(Profile* profile) {
content::WebUIDataSource* CreateMdHistoryUIHTMLSource(Profile* profile,
bool use_test_title) {
content::WebUIDataSource* source =
- content::WebUIDataSource::Create(chrome::kChromeUIHistoryHost);
+ content::WebUIDataSource::Create(content::kChromeUIHistoryHost);
// Localized strings (alphabetical order).
source->AddLocalizedString("bookmarked", IDS_HISTORY_ENTRY_BOOKMARKED);
@@ -249,7 +250,7 @@ void MdHistoryUI::UpdateDataSource() {
update->SetBoolean(kIsUserSignedInKey, IsUserSignedIn(profile));
update->SetBoolean(kShowMenuPromoKey, !MenuPromoShown(profile));
- content::WebUIDataSource::Update(profile, chrome::kChromeUIHistoryHost,
+ content::WebUIDataSource::Update(profile, content::kChromeUIHistoryHost,
std::move(update));
}
« no previous file with comments | « chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc ('k') | chrome/browser/ui/webui/uber/uber_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698