Chromium Code Reviews| 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..9a2fbdade77cbc2949e09d404dd620d499de74b1 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 |
| + // message, which indicates that the message should not be shown. |
|
Nikita (slow)
2012/02/23 14:58:51
We could as well not call OnEnterpriseInfoUpdated(
Patrick Dubroy
2012/02/28 00:51:02
Done.
|
| + if (!domain_name.empty()) { |
| + enterprise_info = l10n_util::GetStringFUTF8( |
| + IDS_LOGIN_MANAGED_BY_NOTICE, |
| + UTF8ToUTF16(enterprise_domain_text_)); |
| + } |
| + delegate_->OnEnterpriseInfoUpdated(enterprise_info); |
| + } |
| } |
| } |