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

Unified Diff: chrome/browser/resources/policy.js

Issue 1052943002: Added device naming information to chrome://policy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed IOS whitelist Created 5 years, 8 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
« no previous file with comments | « chrome/browser/resources/policy.html ('k') | chrome/browser/ui/webui/policy_ui.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/policy.js
diff --git a/chrome/browser/resources/policy.js b/chrome/browser/resources/policy.js
index 9178e6592c659691041ae682ef3a666c4c0a40ab..bec30a7caaef25080064288f05d06cc4624f7bb7 100644
--- a/chrome/browser/resources/policy.js
+++ b/chrome/browser/resources/policy.js
@@ -48,6 +48,25 @@ cr.define('policy', function() {
var domain = this.querySelector('.domain');
domain.textContent = status.domain;
domain.parentElement.hidden = false;
+
+ // Populate the device naming information.
+ // Populate the asset identifier.
+ var assetId = this.querySelector('.asset-id');
+ assetId.textContent = status.assetId ||
+ loadTimeData.getString('notSpecified');
+ assetId.parentElement.hidden = false;
+
+ // Populate the device location.
+ var location = this.querySelector('.location');
+ location.textContent = status.location ||
+ loadTimeData.getString('notSpecified');
+ location.parentElement.hidden = false;
+
+ // Populate the directory API ID.
+ var directoryApiId = this.querySelector('.directory-api-id');
+ directoryApiId.textContent = status.directoryApiId ||
+ loadTimeData.getString('notSpecified');
+ directoryApiId.parentElement.hidden = false;
} else {
// For user policy, set the appropriate title and populate the topmost
// status item with the username that policies apply to.
« no previous file with comments | « chrome/browser/resources/policy.html ('k') | chrome/browser/ui/webui/policy_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698