Skip to content

Commit

Permalink
Merge pull request #5396 from brave/maxk-new_tab-l10n
Browse files Browse the repository at this point in the history
Fixes New Tab page title l10n.
  • Loading branch information
mkarolin authored Apr 28, 2020
2 parents 10f722b + c61bc40 commit 50ff33b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions browser/ui/webui/brave_new_tab_ui.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
#include "brave/components/brave_new_tab/resources/grit/brave_new_tab_generated_map.h"
#include "chrome/browser/profiles/profile.h"
#include "components/grit/brave_components_resources.h"
#include "components/strings/grit/components_strings.h"
#include "content/public/browser/web_ui_data_source.h"
#include "ui/base/l10n/l10n_util.h"

BraveNewTabUI::BraveNewTabUI(content::WebUI* web_ui, const std::string& name)
: WebUIController(web_ui) {
Expand All @@ -25,6 +27,7 @@ BraveNewTabUI::BraveNewTabUI(content::WebUI* web_ui, const std::string& name)
web_ui->AddMessageHandler(base::WrapUnique(
BraveNewTabMessageHandler::Create(source, profile)));
content::WebUIDataSource::Add(profile, source);
web_ui->OverrideTitle(l10n_util::GetStringUTF16(IDS_NEW_TAB_TITLE));
}

BraveNewTabUI::~BraveNewTabUI() {
Expand Down

0 comments on commit 50ff33b

Please sign in to comment.