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

Unified Diff: chrome/browser/chromeos/login/version_info_updater.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/chromeos/login/version_info_updater.cc
diff --git a/chrome/browser/chromeos/login/version_info_updater.cc b/chrome/browser/chromeos/login/version_info_updater.cc
index ab891a913492bada870d3dc5f20056173eed7a45..0bc4f91a774743049ed88aac964aec1635c3594c 100644
--- a/chrome/browser/chromeos/login/version_info_updater.cc
+++ b/chrome/browser/chromeos/login/version_info_updater.cc
@@ -167,6 +167,19 @@ void VersionInfoUpdater::SetEnterpriseInfo(const std::string& domain_name,
enterprise_domain_text_ = domain_name;
enterprise_status_text_ = status_text;
UpdateVersionLabel();
+
+ // Update the notification about device status reporting.
+ if (delegate_) {
+ std::string enterprise_info;
+ // When there is no managed domain, send an empty enterprise info
Nikita (slow) 2012/02/28 09:45:33 nit: Comment about sending empty enterprise info s
Patrick Dubroy 2012/03/15 14:31:17 Done.
+ // message, which indicates that the message should not be shown.
+ if (!domain_name.empty()) {
+ enterprise_info = l10n_util::GetStringFUTF8(
+ IDS_LOGIN_MANAGED_BY_NOTICE,
+ UTF8ToUTF16(enterprise_domain_text_));
+ delegate_->OnEnterpriseInfoUpdated(enterprise_info);
+ }
+ }
}
}

Powered by Google App Engine
This is Rietveld 408576698