Commit c909fc9d authored by meacer's avatar meacer Committed by Commit Bot

Change lookalike interstitial tab title to match in-page header

Bug: 991726
Change-Id: I5bdea1502d1b401dcbe79c0405f8745c226b36ec
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1911281
Auto-Submit: Mustafa Emre Acer <meacer@chromium.org>
Reviewed-by: default avatarJoe DeBlasio <jdeblasio@chromium.org>
Commit-Queue: Mustafa Emre Acer <meacer@chromium.org>
Cr-Commit-Position: refs/heads/master@{#714564}
parent 5f15f7ab
......@@ -90,8 +90,8 @@ void LookalikeUrlInterstitialPage::PopulateInterstitialStrings(
const base::string16 hostname =
security_interstitials::common_string_util::GetFormattedHostName(
request_url());
load_time_data->SetString("tabTitle",
l10n_util::GetStringUTF16(IDS_LOOKALIKE_URL_TITLE));
load_time_data->SetString("tabTitle", l10n_util::GetStringFUTF16(
IDS_LOOKALIKE_URL_TITLE, hostname));
load_time_data->SetString(
"heading",
l10n_util::GetStringFUTF16(IDS_LOOKALIKE_URL_HEADING, hostname));
......
......@@ -66,7 +66,7 @@
<!-- Lookalike URL warning -->
<message name="IDS_LOOKALIKE_URL_TITLE" desc="Tab title. Context: the requested URL might be trying to trick the user since it looks like a more popular URL. This interstitial points the user to the safe site instead.">
Did you mean?
Did you mean <ph name="DOMAIN">$1<ex>example.com</ex></ph>?
</message>
<message name="IDS_LOOKALIKE_URL_HEADING" desc="Large heading. Context: the error page that's shown when the requested URL might be trying to trick the user since it looks like a more popular URL. This interstitial points the user to the safe site instead.">
Did you mean &lt;a href="#" id="dont-proceed-link"&gt;<ph name="DOMAIN">$1<ex>example.com</ex></ph>&lt;/a&gt;?
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment