summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorisherman <isherman@chromium.org>2015-01-09 19:28:56 -0800
committerCommit bot <commit-bot@chromium.org>2015-01-10 03:29:41 +0000
commit0354d02a5be6624c40bbfea05561e5e3051d7aeb (patch)
tree9fdb82c3e7a8b83f2cb1a587e2e0f1024c0be2ff
parent0749ae3fbe2a1ee39c6b4606000fc3c0a3000b45 (diff)
downloadchromium_src-0354d02a5be6624c40bbfea05561e5e3051d7aeb.zip
chromium_src-0354d02a5be6624c40bbfea05561e5e3051d7aeb.tar.gz
chromium_src-0354d02a5be6624c40bbfea05561e5e3051d7aeb.tar.bz2
[Smart Lock] Update strings for the "Secure your phone" screen in the setup dialog.
BUG=406439 TEST=none R=tengs@chromium.org Review URL: https://codereview.chromium.org/799653005 Cr-Commit-Position: refs/heads/master@{#310954}
-rw-r--r--chrome/app/generated_resources.grd10
-rw-r--r--chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_api.cc6
2 files changed, 14 insertions, 2 deletions
diff --git a/chrome/app/generated_resources.grd b/chrome/app/generated_resources.grd
index db4948f..abad6c7 100644
--- a/chrome/app/generated_resources.grd
+++ b/chrome/app/generated_resources.grd
@@ -15153,10 +15153,16 @@ Do you accept?
</message>
<!-- Step 1.5: "Secure this phone to continue" -->
<message name="IDS_EASY_UNLOCK_SETUP_SECURE_PHONE_HEADER_TITLE" desc="The text to show as the header title of the Easy Unlock dialog after a phone has been found but is not secured by a lock screen.">
- Secure this phone to continue
+ Secure your <ph name="PHONE_TYPE">$1<ex>LGE Nexus 5</ex></ph> to continue
</message>
<message name="IDS_EASY_UNLOCK_SETUP_SECURE_PHONE_HEADER_TEXT" desc="The text to show as the header body text of the Easy Unlock dialog after a suitable phone has been found but is not secured by a lock screen. Note that the &lt;a&gt; element surrounds a link; these HTML elements should be preserved in the translation.">
- To keep your <ph name="DEVICE_TYPE">$1<ex>Chromebook</ex></ph> safe, Smart Lock for Chrome requires a screen lock on your phone. &lt;a&gt;Learn how to secure your phone&lt;/a&gt;
+ To keep your <ph name="DEVICE_TYPE">$1<ex>Chromebook</ex></ph> safe, Smart Lock requires a screen lock on the phone that unlocks it. Already secured your phone? Click “Check again” to verify and continue setup.
+ </message>
+ <message name="IDS_EASY_UNLOCK_SETUP_SECURE_PHONE_BUTTON_LABEL" desc="The text to show as the 'How to secure the phone' button label in the Easy Unlock dialog. This button is visible during step 1.5, if the user is prompted to secure their phone.">
+ How to secure the phone
+ </message>
+ <message name="IDS_EASY_UNLOCK_SETUP_SECURE_PHONE_LINK_TEXT" desc="The text to show for the link to check the phone again, after the user has enabled a secure lock screen. This button is visible during the 1.5th step of the Easy Unlock dialog, when the user is prompted to secure their phone.">
+ Check again
</message>
<!-- Step 2: Phone Found -->
<message name="IDS_EASY_UNLOCK_SETUP_FOUND_PHONE_HEADER_TITLE" desc="The text to show as the header title of the Easy Unlock dialog during the second step, after a suitable phone has been found.">
diff --git a/chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_api.cc b/chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_api.cc
index 3a5175e..760e3d6 100644
--- a/chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_api.cc
+++ b/chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_api.cc
@@ -217,6 +217,12 @@ bool EasyUnlockPrivateGetStringsFunction::RunSync() {
"setupSecurePhoneHeaderText",
l10n_util::GetStringFUTF16(IDS_EASY_UNLOCK_SETUP_SECURE_PHONE_HEADER_TEXT,
device_type));
+ strings->SetString("setupSecurePhoneButtonLabel",
+ l10n_util::GetStringUTF16(
+ IDS_EASY_UNLOCK_SETUP_SECURE_PHONE_BUTTON_LABEL));
+ strings->SetString("setupSecurePhoneLinkText",
+ l10n_util::GetStringUTF16(
+ IDS_EASY_UNLOCK_SETUP_SECURE_PHONE_LINK_TEXT));
// Step 2: Found a viable phone.
strings->SetString(
"setupFoundPhoneHeaderTitle",