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

Side by Side Diff: chrome/browser/resources/settings/about_page/about_page_browser_proxy.js

Issue 1997453006: MD Settings: About page, updating buttons based on current update status. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@about_page_main3
Patch Set: Nits. Created 4 years, 7 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 * @fileoverview A helper object used from the "About" section to interact with 6 * @fileoverview A helper object used from the "About" section to interact with
7 * the browser. 7 * the browser.
8 */ 8 */
9 9
10 <if expr="chromeos"> 10 <if expr="chromeos">
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 NEARLY_UPDATED: 'nearly_updated', 47 NEARLY_UPDATED: 'nearly_updated',
48 UPDATED: 'updated', 48 UPDATED: 'updated',
49 FAILED: 'failed', 49 FAILED: 'failed',
50 DISABLED: 'disabled', 50 DISABLED: 'disabled',
51 DISABLED_BY_ADMIN: 'disabled_by_admin', 51 DISABLED_BY_ADMIN: 'disabled_by_admin',
52 }; 52 };
53 53
54 /** 54 /**
55 * @typedef {{ 55 * @typedef {{
56 * status: !UpdateStatus, 56 * status: !UpdateStatus,
57 * progress: number, 57 * progress: (number|undefined),
tommycli 2016/05/20 22:53:18 Looking at the C++ handler, these are always defin
dpapad 2016/05/20 23:25:35 Test code but also prod code (see about_page.js wh
58 * message: string, 58 * message: (string|undefined),
59 * }} 59 * }}
60 */ 60 */
61 var UpdateStatusChangedEvent; 61 var UpdateStatusChangedEvent;
62 62
63 cr.define('settings', function() { 63 cr.define('settings', function() {
64 /** 64 /**
65 * @param {!BrowserChannel} channel 65 * @param {!BrowserChannel} channel
66 * @return {string} 66 * @return {string}
67 */ 67 */
68 function browserChannelToI18nId(channel) { 68 function browserChannelToI18nId(channel) {
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 } 198 }
199 </if> 199 </if>
200 }; 200 };
201 201
202 return { 202 return {
203 AboutPageBrowserProxy: AboutPageBrowserProxy, 203 AboutPageBrowserProxy: AboutPageBrowserProxy,
204 AboutPageBrowserProxyImpl: AboutPageBrowserProxyImpl, 204 AboutPageBrowserProxyImpl: AboutPageBrowserProxyImpl,
205 browserChannelToI18nId: browserChannelToI18nId, 205 browserChannelToI18nId: browserChannelToI18nId,
206 }; 206 };
207 }); 207 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698