| 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 2b1d688ae963a987b5ce7a1c9f6cbf1026a14ae8..f0069ca93d02f853eca6cd57b37ee61b8d0f2ae1 100644
|
| --- a/chrome/browser/ui/webui/md_history_ui.cc
|
| +++ b/chrome/browser/ui/webui/md_history_ui.cc
|
| @@ -32,7 +32,8 @@
|
|
|
| namespace {
|
|
|
| -content::WebUIDataSource* CreateMdHistoryUIHTMLSource(Profile* profile) {
|
| +content::WebUIDataSource* CreateMdHistoryUIHTMLSource(Profile* profile,
|
| + bool use_test_title) {
|
| PrefService* prefs = profile->GetPrefs();
|
|
|
| content::WebUIDataSource* source =
|
| @@ -96,7 +97,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",
|
| @@ -191,6 +195,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());
|
| @@ -201,7 +207,8 @@ MdHistoryUI::MdHistoryUI(content::WebUI* web_ui) : WebUIController(web_ui) {
|
| web_ui->AddMessageHandler(new HistoryLoginHandler());
|
| }
|
|
|
| - content::WebUIDataSource::Add(profile, CreateMdHistoryUIHTMLSource(profile));
|
| + content::WebUIDataSource::Add(
|
| + profile, CreateMdHistoryUIHTMLSource(profile, use_test_title_));
|
| }
|
|
|
| MdHistoryUI::~MdHistoryUI() {}
|
|
|