| 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 904724a85439007d6503e4aaa12fa8eba145479d..b2b754d67c7ffe1b5557e532d8a971315cf61902 100644
|
| --- a/chrome/browser/ui/webui/policy_ui.cc
|
| +++ b/chrome/browser/ui/webui/policy_ui.cc
|
| @@ -94,6 +94,10 @@ content::WebUIDataSource* CreatePolicyUIHTMLSource() {
|
| source->AddLocalizedString("labelDomain", IDS_POLICY_LABEL_DOMAIN);
|
| source->AddLocalizedString("labelUsername", IDS_POLICY_LABEL_USERNAME);
|
| source->AddLocalizedString("labelClientId", IDS_POLICY_LABEL_CLIENT_ID);
|
| + source->AddLocalizedString("labelAssetId", IDS_POLICY_LABEL_ASSET_ID);
|
| + source->AddLocalizedString("labelLocation", IDS_POLICY_LABEL_LOCATION);
|
| + source->AddLocalizedString("labelDirectoryApiId",
|
| + IDS_POLICY_LABEL_DIRECTORY_API_ID);
|
| source->AddLocalizedString("labelTimeSinceLastRefresh",
|
| IDS_POLICY_LABEL_TIME_SINCE_LAST_REFRESH);
|
| source->AddLocalizedString("labelRefreshInterval",
|
| @@ -172,6 +176,12 @@ void GetStatusFromCore(const policy::CloudPolicyCore* core,
|
| const em::PolicyData* policy = store->policy();
|
| std::string client_id = policy ? policy->device_id() : std::string();
|
| std::string username = policy ? policy->username() : std::string();
|
| + std::string asset_id = (policy && policy->has_annotated_asset_id()) ?
|
| + policy->annotated_asset_id() : std::string("Not Specified");
|
| + std::string location = (policy && policy->has_annotated_location()) ?
|
| + policy->annotated_location() : std::string("Not Specified");
|
| + std::string directory_api_id = (policy && policy->has_directory_api_id()) ?
|
| + policy->directory_api_id() : std::string("Not Specified");
|
| base::TimeDelta refresh_interval =
|
| base::TimeDelta::FromMilliseconds(refresh_scheduler ?
|
| refresh_scheduler->refresh_delay() :
|
| @@ -185,6 +195,9 @@ void GetStatusFromCore(const policy::CloudPolicyCore* core,
|
| dict->SetString("status", status);
|
| dict->SetString("clientId", client_id);
|
| dict->SetString("username", username);
|
| + dict->SetString("assetId", asset_id);
|
| + dict->SetString("location", location);
|
| + dict->SetString("directoryApiId", directory_api_id);
|
| dict->SetString("refreshInterval",
|
| ui::TimeFormat::Simple(ui::TimeFormat::FORMAT_DURATION,
|
| ui::TimeFormat::LENGTH_SHORT,
|
|
|