Chromium Code Reviews| Index: components/version_ui/resources/about_version_ios.js |
| diff --git a/components/version_ui/resources/about_version_ios.js b/components/version_ui/resources/about_version_ios.js |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..2409c9b10d8be5f176b67ed10d3f331c33786341 |
| --- /dev/null |
| +++ b/components/version_ui/resources/about_version_ios.js |
| @@ -0,0 +1,23 @@ |
| +// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +/** |
| + * Callback from the backend with the list of variations to display. |
| + * This call will build the variations section of the version page, or hide that |
| + * section if there are none to display. |
| + * @param {!Array<string>} variationsList The list of variations. |
| + */ |
| +function returnVariationInfo(variationsList) { |
| + $('variations-section').hidden = !variationsList.length; |
| + $('variations-list').appendChild( |
| + parseHtmlSubset(variationsList.join('<br>'), ['BR'])); |
| +} |
| + |
| + |
| +/* All the work we do onload. */ |
| +function onLoadWork() { |
| + chrome.send('requestVersionInfo'); |
|
Eugene But (OOO till 7-30)
2016/06/01 23:32:00
Is there a reason why ios is different from other
dpapad
2016/06/01 23:44:11
The only reason is that at the time I authored thi
|
| +} |
| + |
| +document.addEventListener('DOMContentLoaded', onLoadWork); |