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

Unified Diff: chrome/browser/ui/webui/options/password_manager_handler.cc

Issue 2588323002: Revert "Remove Finch support for PasswordBranding" (Closed)
Patch Set: Created 4 years 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
Index: chrome/browser/ui/webui/options/password_manager_handler.cc
diff --git a/chrome/browser/ui/webui/options/password_manager_handler.cc b/chrome/browser/ui/webui/options/password_manager_handler.cc
index 890ea1763251d838653b17d13f86731960d03a49..065eb4251402fc2585c9987e2cbb1f40015d1a44 100644
--- a/chrome/browser/ui/webui/options/password_manager_handler.cc
+++ b/chrome/browser/ui/webui/options/password_manager_handler.cc
@@ -135,8 +135,13 @@ void PasswordManagerHandler::GetLocalizedValues(
RegisterStrings(localized_strings, resources, arraysize(resources));
- RegisterTitle(localized_strings, "passwordsPage",
- IDS_PASSWORDS_EXCEPTIONS_WINDOW_TITLE);
+ const browser_sync::ProfileSyncService* sync_service =
+ ProfileSyncServiceFactory::GetForProfile(GetProfile());
+ int title_id =
+ password_bubble_experiment::IsSmartLockBrandingEnabled(sync_service)
+ ? IDS_PASSWORD_MANAGER_SMART_LOCK_FOR_PASSWORDS
+ : IDS_PASSWORDS_EXCEPTIONS_WINDOW_TITLE;
+ RegisterTitle(localized_strings, "passwordsPage", title_id);
localized_strings->SetString("passwordManagerLearnMoreURL",
chrome::kPasswordManagerLearnMoreURL);
« no previous file with comments | « chrome/browser/ui/views/passwords/manage_passwords_bubble_view.cc ('k') | components/password_manager/core/browser/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698