Index: chrome/browser/ui/webui/policy_ui.cc |
diff --git a/chrome/browser/ui/webui/policy_ui.cc b/chrome/browser/ui/webui/policy_ui.cc |
index 607a22868b12b29bffbc525fefc6dc72968d9813..c2a098b975558e9e8a7be08a4d716ce54a6d0f1f 100644 |
--- a/chrome/browser/ui/webui/policy_ui.cc |
+++ b/chrome/browser/ui/webui/policy_ui.cc |
@@ -188,11 +188,15 @@ void GetStatusFromCore(const policy::CloudPolicyCore* core, |
dict->SetString("clientId", client_id); |
dict->SetString("username", username); |
dict->SetString("refreshInterval", |
- ui::TimeFormat::TimeDurationShort(refresh_interval)); |
+ ui::TimeFormat::Simple(ui::TimeFormat::FORMAT_DURATION, |
+ ui::TimeFormat::LENGTH_SHORT, |
+ refresh_interval)); |
dict->SetString("timeSinceLastRefresh", last_refresh_time.is_null() ? |
l10n_util::GetStringUTF16(IDS_POLICY_NEVER_FETCHED) : |
- ui::TimeFormat::TimeElapsed(base::Time::NowFromSystemTime() - |
- last_refresh_time)); |
+ ui::TimeFormat::Simple(ui::TimeFormat::FORMAT_ELAPSED, |
+ ui::TimeFormat::LENGTH_SHORT, |
+ base::Time::NowFromSystemTime() - |
+ last_refresh_time)); |
} |
void ExtractDomainFromUsername(base::DictionaryValue* dict) { |