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); |
+ } |
+ } |
} |
} |