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

Unified Diff: chrome/browser/ui/webui/chromeos/sim_unlock_ui.cc

Issue 588363002: WebUI: Update some more uses of the old-style i18ntemplate/LocalStrings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: relative Created 6 years, 3 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/ui/webui/chromeos/sim_unlock_ui.cc
diff --git a/chrome/browser/ui/webui/chromeos/sim_unlock_ui.cc b/chrome/browser/ui/webui/chromeos/sim_unlock_ui.cc
index 6a67106c155a60bc61396398c285928c76a4f852..5b2e766fc43a2d6a4da9cbeaca376d7b60d070a8 100644
--- a/chrome/browser/ui/webui/chromeos/sim_unlock_ui.cc
+++ b/chrome/browser/ui/webui/chromeos/sim_unlock_ui.cc
@@ -275,6 +275,7 @@ void SimUnlockUIHTMLSource::StartDataRequest(
strings.SetString("title",
l10n_util::GetStringUTF16(IDS_SIM_UNLOCK_ENTER_PIN_TITLE));
strings.SetString("ok", l10n_util::GetStringUTF16(IDS_OK));
+ strings.SetString("cancel", l10n_util::GetStringUTF16(IDS_CANCEL));
strings.SetString("enterPinTitle",
l10n_util::GetStringUTF16(IDS_SIM_UNLOCK_ENTER_PIN_TITLE));
strings.SetString("enterPinMessage",
@@ -329,6 +330,7 @@ void SimUnlockUIHTMLSource::StartDataRequest(
ResourceBundle::GetSharedInstance().GetRawDataResource(
IDR_SIM_UNLOCK_HTML));
+ webui::UseVersion2 version2;
std::string full_html = webui::GetI18nTemplateHtml(html, &strings);
callback.Run(base::RefCountedString::TakeString(&full_html));

Powered by Google App Engine
This is Rietveld 408576698