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

Unified Diff: chrome/browser/managed_mode/managed_mode_interstitial.cc

Issue 17320005: Update strings to match the final spec. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Null-check the signin manager for CrOS Created 7 years, 6 months 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/managed_mode/managed_mode_interstitial.cc
===================================================================
--- chrome/browser/managed_mode/managed_mode_interstitial.cc (revision 207746)
+++ chrome/browser/managed_mode/managed_mode_interstitial.cc (working copy)
@@ -52,19 +52,25 @@
DictionaryValue strings;
strings.SetString("blockPageTitle",
l10n_util::GetStringUTF16(IDS_BLOCK_INTERSTITIAL_TITLE));
- strings.SetString("blockPageMessage",
- l10n_util::GetStringUTF16(IDS_BLOCK_INTERSTITIAL_MESSAGE));
+
+ Profile* profile =
+ Profile::FromBrowserContext(web_contents_->GetBrowserContext());
+ ManagedUserService* managed_user_service =
+ ManagedUserServiceFactory::GetForProfile(profile);
+ string16 custodian = UTF8ToUTF16(managed_user_service->GetCustodianName());
+ strings.SetString(
+ "blockPageMessage",
+ l10n_util::GetStringFUTF16(IDS_BLOCK_INTERSTITIAL_MESSAGE, custodian));
+
strings.SetString("backButton", l10n_util::GetStringUTF16(IDS_BACK_BUTTON));
strings.SetString(
"requestAccessButton",
l10n_util::GetStringUTF16(IDS_BLOCK_INTERSTITIAL_REQUEST_ACCESS_BUTTON));
- // TODO(sergiu): Set name to real value here.
- std::string custodian_name("John Doe");
strings.SetString(
"requestSentMessage",
l10n_util::GetStringFUTF16(IDS_BLOCK_INTERSTITIAL_REQUEST_SENT_MESSAGE,
- ASCIIToUTF16(custodian_name)));
+ custodian));
webui::SetFontAndTextDirection(&strings);

Powered by Google App Engine
This is Rietveld 408576698