Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4226)

Unified Diff: chrome/browser/ui/passwords/manage_passwords_view_utils.cc

Issue 1379153003: [Smart Lock, UI] First run expience for Auto sign-in prompt. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: AutoSigninFirstRunInfoBar.java Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/passwords/manage_passwords_view_utils.h ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/passwords/manage_passwords_view_utils.cc
diff --git a/chrome/browser/ui/passwords/manage_passwords_view_utils.cc b/chrome/browser/ui/passwords/manage_passwords_view_utils.cc
index 833e5b2e28b3be696cd257c703f38a1365f00e84..ce016fa9791d943f12263da2644f610bd7b7968c 100644
--- a/chrome/browser/ui/passwords/manage_passwords_view_utils.cc
+++ b/chrome/browser/ui/passwords/manage_passwords_view_utils.cc
@@ -119,3 +119,24 @@ void GetAccountChooserDialogTitleTextAndLinkRange(
l10n_util::GetStringUTF16(IDS_PASSWORD_MANAGER_ACCOUNT_CHOOSER_TITLE);
}
}
+
+void GetAutoSigninPromptFirstRunExperienceExplanation(
+ bool is_smartlock_branding_enabled,
+ base::string16* explanation,
+ gfx::Range* explanation_link_range) {
+ *explanation_link_range = gfx::Range();
+ if (is_smartlock_branding_enabled) {
+ size_t offset;
+ base::string16 explanation_link =
+ l10n_util::GetStringUTF16(IDS_PASSWORD_MANAGER_SMART_LOCK);
+ *explanation = l10n_util::GetStringFUTF16(
+ IDS_MANAGE_PASSWORDS_AUTO_SIGNIN_SMART_LOCK_WELCOME, explanation_link,
+ &offset);
+ *explanation_link_range =
+ gfx::Range(offset, offset + explanation_link.length());
+ } else {
+ *explanation = l10n_util::GetStringFUTF16(
+ IDS_MANAGE_PASSWORDS_AUTO_SIGNIN_DEFAULT_WELCOME,
+ l10n_util::GetStringUTF16(IDS_SAVE_PASSWORD_TITLE_BRAND));
+ }
+}
« no previous file with comments | « chrome/browser/ui/passwords/manage_passwords_view_utils.h ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698