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

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

Issue 1486403002: Mojo-ifying chrome://version. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use unique_ptr Created 4 years, 6 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
(Empty)
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
3 // found in the LICENSE file.
4
5 /**
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
8 * section if there are none to display.
9 * @param {!Array<string>} variationsList The list of variations.
10 */
11 function returnVariationInfo(variationsList) {
12 $('variations-section').hidden = !variationsList.length;
13 $('variations-list').appendChild(
14 parseHtmlSubset(variationsList.join('<br>'), ['BR']));
15 }
16
17
18 /* All the work we do onload. */
19 function onLoadWork() {
20 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
21 }
22
23 document.addEventListener('DOMContentLoaded', onLoadWork);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698