| 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');
|
| +}
|
| +
|
| +document.addEventListener('DOMContentLoaded', onLoadWork);
|
|
|