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

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

Issue 9416097: Add butter bar to login screen to show device enrollement info. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address nkostylev's comments. Created 8 years, 10 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/login/core_oobe_handler.cc
diff --git a/chrome/browser/ui/webui/chromeos/login/core_oobe_handler.cc b/chrome/browser/ui/webui/chromeos/login/core_oobe_handler.cc
index e70791b5928b5af34913819d18950403187a5af9..53dba7fabe2235545f6f4f0a969ab7e100fa8221 100644
--- a/chrome/browser/ui/webui/chromeos/login/core_oobe_handler.cc
+++ b/chrome/browser/ui/webui/chromeos/login/core_oobe_handler.cc
@@ -43,6 +43,8 @@ void CoreOobeHandler::GetLocalizedStrings(
"title", l10n_util::GetStringUTF16(IDS_SHORT_PRODUCT_NAME));
localized_strings->SetString(
"productName", l10n_util::GetStringUTF16(IDS_SHORT_PRODUCT_NAME));
+ localized_strings->SetString(
+ "learnMore", l10n_util::GetStringUTF16(IDS_LEARN_MORE));
}
void CoreOobeHandler::Initialize() {
@@ -100,6 +102,13 @@ void CoreOobeHandler::OnBootTimesLabelTextUpdated(
UpdateLabel("boot-times", boot_times_label_text);
}
+void CoreOobeHandler::OnEnterpriseInfoUpdated(
+ const std::string& message_text) {
+ base::StringValue message_text_vaue(UTF8ToUTF16(message_text));
+ web_ui()->CallJavascriptFunction("cr.ui.Oobe.setEnterpriseInfo",
+ message_text_vaue);
+}
+
void CoreOobeHandler::UpdateLabel(const std::string& id,
const std::string& text) {
base::StringValue id_value(UTF8ToUTF16(id));

Powered by Google App Engine
This is Rietveld 408576698