| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 * Callback from the backend with the list of variations to display. | 6 * Callback from the backend with the list of variations to display. |
| 7 * This call will build the variations section of the version page, or hide that | 7 * This call will build the variations section of the version page, or hide that |
| 8 * section if there are none to display. | 8 * section if there are none to display. |
| 9 * @param {!Array<string>} variationsList The list of variations. | 9 * @param {!Array<string>} variationsList The list of variations. |
| 10 */ | 10 */ |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 function returnCustomizationId(response) { | 56 function returnCustomizationId(response) { |
| 57 if (!response.customizationId) | 57 if (!response.customizationId) |
| 58 return; | 58 return; |
| 59 $('customization_id_holder').hidden = false; | 59 $('customization_id_holder').hidden = false; |
| 60 $('customization_id').textContent = response.customizationId; | 60 $('customization_id').textContent = response.customizationId; |
| 61 } | 61 } |
| 62 | 62 |
| 63 /* All the work we do onload. */ | 63 /* All the work we do onload. */ |
| 64 function onLoadWork() { | 64 function onLoadWork() { |
| 65 chrome.send('requestVersionInfo'); | 65 chrome.send('requestVersionInfo'); |
| 66 $('arc_holder').hidden = true; | 66 if (cr.isChromeOS) { |
| 67 if (cr.isChromeOS) | 67 $('arc_holder').hidden = true; |
| 68 chrome.chromeosInfoPrivate.get(['customizationId'], returnCustomizationId); | 68 chrome.chromeosInfoPrivate.get(['customizationId'], returnCustomizationId); |
| 69 } |
| 69 } | 70 } |
| 70 | 71 |
| 71 document.addEventListener('DOMContentLoaded', onLoadWork); | 72 document.addEventListener('DOMContentLoaded', onLoadWork); |
| OLD | NEW |