| Index: chrome/browser/resources/policy.js
|
| diff --git a/chrome/browser/resources/policy.js b/chrome/browser/resources/policy.js
|
| index 5c26d8b08b406c2e8d157b1d5afd87651dbc2ea8..242f67348859377b674b01842419a44fd46c9076 100644
|
| --- a/chrome/browser/resources/policy.js
|
| +++ b/chrome/browser/resources/policy.js
|
| @@ -13,6 +13,10 @@ var policyDataFormat = {
|
| // False if the policy information is being sent due to an initial page load
|
| // and true if it is being sent due to a change of policy values.
|
| 'isPolicyUpdate': false,
|
| +
|
| + // True if a policy fetch that was requested has completed.
|
| + 'isRefreshDone': false,
|
| +
|
| 'policies': [
|
| {
|
| 'level': 'managed',
|
| @@ -216,12 +220,12 @@ cr.define('policies', function() {
|
| * by the policyDataFormat.
|
| */
|
| Policy.returnData = function(policyData) {
|
| + if (policyData.isRefreshDone)
|
| + $('fetch-policies-button').disabled = false;
|
| if (policyData.isPolicyUpdate) {
|
| Policy.getInstance().collapseExpandedCells();
|
| Policy.getInstance().renderTemplate(policyData);
|
| Policy.getInstance().updatePolicyVisibility();
|
| -
|
| - $('fetch-policies-button').disabled = false;
|
| } else {
|
| Policy.getInstance().renderTemplate(policyData);
|
| }
|
|
|