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

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

Issue 2538043006: Settings: About: Fix cros channel info. (Closed)
Patch Set: . Created 4 years 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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 132
133 /** @return {!Promise<!BrowserChannel>} */ 133 /** @return {!Promise<!BrowserChannel>} */
134 getCurrentChannel: function() {}, 134 getCurrentChannel: function() {},
135 135
136 /** @return {!Promise<!BrowserChannel>} */ 136 /** @return {!Promise<!BrowserChannel>} */
137 getTargetChannel: function() {}, 137 getTargetChannel: function() {},
138 138
139 /** @return {!Promise<!VersionInfo>} */ 139 /** @return {!Promise<!VersionInfo>} */
140 getVersionInfo: function() {}, 140 getVersionInfo: function() {},
141 141
142 /** @return {!Promise<boolean>} */
143 getCanChangeChannel: function() {},
144
142 /** @return {!Promise<?RegulatoryInfo>} */ 145 /** @return {!Promise<?RegulatoryInfo>} */
143 getRegulatoryInfo: function() {}, 146 getRegulatoryInfo: function() {},
144 </if> 147 </if>
145 }; 148 };
146 149
147 /** 150 /**
148 * @implements {settings.AboutPageBrowserProxy} 151 * @implements {settings.AboutPageBrowserProxy}
149 * @constructor 152 * @constructor
150 */ 153 */
151 function AboutPageBrowserProxyImpl() {} 154 function AboutPageBrowserProxyImpl() {}
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 getTargetChannel: function() { 197 getTargetChannel: function() {
195 return cr.sendWithPromise('getTargetChannel'); 198 return cr.sendWithPromise('getTargetChannel');
196 }, 199 },
197 200
198 /** @override */ 201 /** @override */
199 getVersionInfo: function() { 202 getVersionInfo: function() {
200 return cr.sendWithPromise('getVersionInfo'); 203 return cr.sendWithPromise('getVersionInfo');
201 }, 204 },
202 205
203 /** @override */ 206 /** @override */
207 getCanChangeChannel: function() {
208 return cr.sendWithPromise('getCanChangeChannel');
209 },
210
211 /** @override */
204 getRegulatoryInfo: function() { 212 getRegulatoryInfo: function() {
205 return cr.sendWithPromise('getRegulatoryInfo'); 213 return cr.sendWithPromise('getRegulatoryInfo');
206 } 214 }
207 </if> 215 </if>
208 }; 216 };
209 217
210 return { 218 return {
211 AboutPageBrowserProxy: AboutPageBrowserProxy, 219 AboutPageBrowserProxy: AboutPageBrowserProxy,
212 AboutPageBrowserProxyImpl: AboutPageBrowserProxyImpl, 220 AboutPageBrowserProxyImpl: AboutPageBrowserProxyImpl,
213 browserChannelToI18nId: browserChannelToI18nId, 221 browserChannelToI18nId: browserChannelToI18nId,
214 isTargetChannelMoreStable: isTargetChannelMoreStable, 222 isTargetChannelMoreStable: isTargetChannelMoreStable,
215 }; 223 };
216 }); 224 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698