Commit efce41c3 authored by meacer's avatar meacer Committed by Commit bot

Captive portal interstitial: Use the same string for page title and header.

I've noticed that the localization of the strings are done differently, so
it's better to use the same string for both.

BUG=

Review URL: https://codereview.chromium.org/881973002

Cr-Commit-Position: refs/heads/master@{#313602}
parent fc43a71f
...@@ -9875,12 +9875,6 @@ I don't think this site should be blocked! ...@@ -9875,12 +9875,6 @@ I don't think this site should be blocked!
</if> </if>
<!-- Captive portal interstitial --> <!-- Captive portal interstitial -->
<message name="IDS_CAPTIVE_PORTAL_TITLE_WIRED" desc="Title in the error page when a secure request is blocked because the network is redirecting the request to another page until the user logs in">
Connect to Network
</message>
<message name="IDS_CAPTIVE_PORTAL_TITLE_WIFI" desc="Title in the error page when a secure request is blocked because the Wi-fi is redirecting the request to another page until the user logs in">
Connect to Wi-Fi
</message>
<message name="IDS_CAPTIVE_PORTAL_HEADING_WIRED" desc="Heading in the error page when a secure request is blocked because a captive portal is manipulating a wired connection (e.g. ethernet)"> <message name="IDS_CAPTIVE_PORTAL_HEADING_WIRED" desc="Heading in the error page when a secure request is blocked because a captive portal is manipulating a wired connection (e.g. ethernet)">
Connect to network Connect to network
</message> </message>
......
...@@ -97,8 +97,8 @@ void CaptivePortalBlockingPage::PopulateInterstitialStrings( ...@@ -97,8 +97,8 @@ void CaptivePortalBlockingPage::PopulateInterstitialStrings(
load_time_data->SetString("tabTitle", load_time_data->SetString("tabTitle",
l10n_util::GetStringUTF16( l10n_util::GetStringUTF16(
is_wifi_connection_ ? is_wifi_connection_ ?
IDS_CAPTIVE_PORTAL_TITLE_WIFI : IDS_CAPTIVE_PORTAL_HEADING_WIFI :
IDS_CAPTIVE_PORTAL_TITLE_WIRED)); IDS_CAPTIVE_PORTAL_HEADING_WIRED));
load_time_data->SetString("heading", load_time_data->SetString("heading",
l10n_util::GetStringUTF16( l10n_util::GetStringUTF16(
is_wifi_connection_ ? is_wifi_connection_ ?
......
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