| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 /** | 5 /** |
| 6 * This variable structure is here to document the structure that the template | 6 * This variable structure is here to document the structure that the template |
| 7 * expects to correctly populate the page. | 7 * expects to correctly populate the page. |
| 8 */ | 8 */ |
| 9 var policyDataFormat = { | 9 var policyDataFormat = { |
| 10 // Whether any of the policies in 'policies' have a value. | 10 // Whether any of the policies in 'policies' have a value. |
| 11 'anyPoliciesSet': true, | 11 'anyPoliciesSet': true, |
| 12 | 12 |
| 13 // False if the policy information is being sent due to an initial page load | 13 // False if the policy information is being sent due to an initial page load |
| 14 // and true if it is being sent due to a change of policy values. | 14 // and true if it is being sent due to a change of policy values. |
| 15 'isPolicyUpdate': false, | 15 'isPolicyUpdate': false, |
| 16 'policies': [ | 16 'policies': [ |
| 17 { | 17 { |
| 18 'level': 'managed', | 18 'level': 'managed', |
| 19 'name': 'AllowXYZ', | 19 'name': 'AllowXYZ', |
| 20 'set': true, | 20 'set': true, |
| 21 'sourceType': 'Device', | 21 'scope': 'Machine', |
| 22 'status': 'ok', | 22 'status': 'ok', |
| 23 'value': true | 23 'value': true |
| 24 } | 24 } |
| 25 ], | 25 ], |
| 26 'status': { | 26 'status': { |
| 27 'deviceFetchInterval': '8min', | 27 'deviceFetchInterval': '8min', |
| 28 'deviceId': 'D2AC39A2-3C8FC-E2C0-E45D2DC3782C', | 28 'deviceId': 'D2AC39A2-3C8FC-E2C0-E45D2DC3782C', |
| 29 'deviceLastFetchTime': '9:50 PM', | 29 'deviceLastFetchTime': '9:50 PM', |
| 30 'devicePolicyDomain': 'google.com', | 30 'devicePolicyDomain': 'google.com', |
| 31 'deviceStatusMessage': 'OK', | 31 'deviceStatusMessage': 'OK', |
| (...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 270 // Export | 270 // Export |
| 271 return { | 271 return { |
| 272 Policy: Policy | 272 Policy: Policy |
| 273 }; | 273 }; |
| 274 }); | 274 }); |
| 275 | 275 |
| 276 var Policy = policies.Policy; | 276 var Policy = policies.Policy; |
| 277 | 277 |
| 278 // Get data and have it displayed upon loading. | 278 // Get data and have it displayed upon loading. |
| 279 document.addEventListener('DOMContentLoaded', policies.Policy.initialize); | 279 document.addEventListener('DOMContentLoaded', policies.Policy.initialize); |
| OLD | NEW |