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

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

Issue 2795603002: Add an update warning for downloading over mobile data (Closed)
Patch Set: Ignore this as I uploaded a new CL Created 3 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 * @enum {string} 51 * @enum {string}
52 */ 52 */
53 var UpdateStatus = { 53 var UpdateStatus = {
54 CHECKING: 'checking', 54 CHECKING: 'checking',
55 UPDATING: 'updating', 55 UPDATING: 'updating',
56 NEARLY_UPDATED: 'nearly_updated', 56 NEARLY_UPDATED: 'nearly_updated',
57 UPDATED: 'updated', 57 UPDATED: 'updated',
58 FAILED: 'failed', 58 FAILED: 'failed',
59 DISABLED: 'disabled', 59 DISABLED: 'disabled',
60 DISABLED_BY_ADMIN: 'disabled_by_admin', 60 DISABLED_BY_ADMIN: 'disabled_by_admin',
61 NEED_PERMISSION_TO_UPDATE: 'need_permission_to_update',
61 }; 62 };
62 63
63 // <if expr="_google_chrome and is_macosx"> 64 // <if expr="_google_chrome and is_macosx">
64 /** 65 /**
65 * @typedef {{ 66 * @typedef {{
66 * hidden: boolean, 67 * hidden: boolean,
67 * disabled: boolean, 68 * disabled: boolean,
68 * actionable: boolean, 69 * actionable: boolean,
69 * text: (string|undefined) 70 * text: (string|undefined)
70 * }} 71 * }}
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 chrome.send('openFeedbackDialog'); 207 chrome.send('openFeedbackDialog');
207 }, 208 },
208 // </if> 209 // </if>
209 210
210 // <if expr="chromeos"> 211 // <if expr="chromeos">
211 /** @override */ 212 /** @override */
212 requestUpdate: function() { 213 requestUpdate: function() {
213 chrome.send('requestUpdate'); 214 chrome.send('requestUpdate');
214 }, 215 },
215 216
217 requestUpdateOverCellular: function(target_version, target_size) {
218 chrome.send('requestUpdateOverCellular', [target_version, target_size]);
219 },
220
216 /** @override */ 221 /** @override */
217 setChannel: function(channel, isPowerwashAllowed) { 222 setChannel: function(channel, isPowerwashAllowed) {
218 chrome.send('setChannel', [channel, isPowerwashAllowed]); 223 chrome.send('setChannel', [channel, isPowerwashAllowed]);
219 }, 224 },
220 225
221 /** @override */ 226 /** @override */
222 getChannelInfo: function() { 227 getChannelInfo: function() {
223 return cr.sendWithPromise('getChannelInfo'); 228 return cr.sendWithPromise('getChannelInfo');
224 }, 229 },
225 230
226 /** @override */ 231 /** @override */
227 getVersionInfo: function() { 232 getVersionInfo: function() {
228 return cr.sendWithPromise('getVersionInfo'); 233 return cr.sendWithPromise('getVersionInfo');
229 }, 234 },
230 235
231 /** @override */ 236 /** @override */
232 getRegulatoryInfo: function() { 237 getRegulatoryInfo: function() {
233 return cr.sendWithPromise('getRegulatoryInfo'); 238 return cr.sendWithPromise('getRegulatoryInfo');
234 } 239 }
235 // </if> 240 // </if>
236 }; 241 };
237 242
238 return { 243 return {
239 AboutPageBrowserProxy: AboutPageBrowserProxy, 244 AboutPageBrowserProxy: AboutPageBrowserProxy,
240 AboutPageBrowserProxyImpl: AboutPageBrowserProxyImpl, 245 AboutPageBrowserProxyImpl: AboutPageBrowserProxyImpl,
241 browserChannelToI18nId: browserChannelToI18nId, 246 browserChannelToI18nId: browserChannelToI18nId,
242 isTargetChannelMoreStable: isTargetChannelMoreStable, 247 isTargetChannelMoreStable: isTargetChannelMoreStable,
243 }; 248 };
244 }); 249 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698