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

Unified Diff: chrome/browser/ui/webui/chromeos/login/host_pairing_screen_handler.cc

Issue 608963002: Added strings needed for the pairing UI. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « chrome/browser/ui/webui/chromeos/login/controller_pairing_screen_handler.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/chromeos/login/host_pairing_screen_handler.cc
diff --git a/chrome/browser/ui/webui/chromeos/login/host_pairing_screen_handler.cc b/chrome/browser/ui/webui/chromeos/login/host_pairing_screen_handler.cc
index 6a1ffcb90762ed965a14f0a37dbdc3ebff146b71..4914bb71ea9c66412fbb7b4cb357704ff5b8f13b 100644
--- a/chrome/browser/ui/webui/chromeos/login/host_pairing_screen_handler.cc
+++ b/chrome/browser/ui/webui/chromeos/login/host_pairing_screen_handler.cc
@@ -4,7 +4,9 @@
#include "chrome/browser/ui/webui/chromeos/login/host_pairing_screen_handler.h"
+#include "base/strings/string_util.h"
#include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h"
+#include "grit/generated_resources.h"
namespace chromeos {
@@ -50,6 +52,27 @@ void HostPairingScreenHandler::Initialize() {
void HostPairingScreenHandler::DeclareLocalizedValues(
LocalizedValuesBuilder* builder) {
+ // TODO(dzhioev): Move the prefix logic to the base screen handler after
+ // migration.
+ std::string prefix;
+ base::ReplaceChars(kJsScreenPath, ".", "_", &prefix);
+ prefix += "_";
+
+ builder->Add(prefix + "welcomeTitle", IDS_PAIRING_HOST_WELCOME_TITLE);
+ builder->Add(prefix + "welcomeText", IDS_PAIRING_HOST_WELCOME_TEXT);
+ builder->Add(prefix + "confirmationTitle",
+ IDS_PAIRING_HOST_CONFIRMATION_TITLE);
+ builder->Add(prefix + "updatingTitle", IDS_PAIRING_HOST_UPDATING_TITLE);
+ builder->Add(prefix + "updatingText", IDS_PAIRING_HOST_UPDATING_TEXT);
+ builder->Add(prefix + "enrollTitle", IDS_PAIRING_ENROLL_TITLE);
+ builder->Add(prefix + "enrollingTitle",
+ IDS_PAIRING_ENROLLMENT_IN_PROGRESS);
+ builder->Add(prefix + "doneTitle", IDS_PAIRING_HOST_DONE_TITLE);
+ builder->Add(prefix + "doneText", IDS_PAIRING_HOST_DONE_TEXT);
+ builder->Add(prefix + "enrollmentErrorTitle",
+ IDS_PAIRING_ENROLLMENT_ERROR_TITLE);
+ builder->Add(prefix + "errorNeedsRestart",
+ IDS_PAIRING_HOST_EROLLMENT_ERROR_NEEDS_RESTART);
}
void HostPairingScreenHandler::RegisterMessages() {
« no previous file with comments | « chrome/browser/ui/webui/chromeos/login/controller_pairing_screen_handler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698