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

Side by Side Diff: components/version_ui/resources/about_version.js

Issue 2626043007: Clean up chrome://version page. (Closed)
Patch Set: fix rebase Created 3 years, 10 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 unified diff | Download patch
OLDNEW
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
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);
OLDNEW
« no previous file with comments | « components/version_ui/resources/about_version.html ('k') | components/version_ui/version_ui_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698