| 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 28693fe75e2af1faa04b64e1dcbb19396774c66b..1d9d4a85d8154805cf6bf2bb0dc65a8a76c26ec6 100644
|
| --- a/chrome/browser/ui/webui/md_history_ui.cc
|
| +++ b/chrome/browser/ui/webui/md_history_ui.cc
|
| @@ -35,7 +35,8 @@
|
|
|
| namespace {
|
|
|
| -content::WebUIDataSource* CreateMdHistoryUIHTMLSource(Profile* profile) {
|
| +content::WebUIDataSource* CreateMdHistoryUIHTMLSource(Profile* profile,
|
| + bool use_test_title) {
|
| content::WebUIDataSource* source =
|
| content::WebUIDataSource::Create(chrome::kChromeUIHistoryHost);
|
|
|
| @@ -99,7 +100,10 @@ content::WebUIDataSource* CreateMdHistoryUIHTMLSource(Profile* profile) {
|
| source->AddLocalizedString("signInPromo", IDS_MD_HISTORY_SIGN_IN_PROMO);
|
| source->AddLocalizedString("signInPromoDesc",
|
| IDS_MD_HISTORY_SIGN_IN_PROMO_DESC);
|
| - source->AddLocalizedString("title", IDS_HISTORY_TITLE);
|
| + if (use_test_title)
|
| + source->AddString("title", "MD History");
|
| + else
|
| + source->AddLocalizedString("title", IDS_HISTORY_TITLE);
|
|
|
| source->AddString(
|
| "sidebarFooter",
|
| @@ -203,6 +207,8 @@ content::WebUIDataSource* CreateMdHistoryUIHTMLSource(Profile* profile) {
|
|
|
| } // namespace
|
|
|
| +bool MdHistoryUI::use_test_title_ = false;
|
| +
|
| MdHistoryUI::MdHistoryUI(content::WebUI* web_ui) : WebUIController(web_ui) {
|
| Profile* profile = Profile::FromWebUI(web_ui);
|
| web_ui->AddMessageHandler(new BrowsingHistoryHandler());
|
| @@ -213,7 +219,7 @@ MdHistoryUI::MdHistoryUI(content::WebUI* web_ui) : WebUIController(web_ui) {
|
| web_ui->AddMessageHandler(new HistoryLoginHandler());
|
| }
|
|
|
| - data_source_ = CreateMdHistoryUIHTMLSource(profile);
|
| + data_source_ = CreateMdHistoryUIHTMLSource(profile, use_test_title_);
|
| content::WebUIDataSource::Add(profile, data_source_);
|
|
|
| web_ui->RegisterMessageCallback("menuPromoShown",
|
|
|