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

Side by Side Diff: chrome/browser/resources/settings/on_startup_page/on_startup_browser_proxy.js

Issue 2507003005: Implement extension controlled indicators, starting with New Tab page (Closed)
Patch Set: mo hackin' Created 4 years, 1 month 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 2016 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 /** @typedef {{id: string, name: string, canBeDisabled: boolean}} */
6 var NtpExtension;
7
8 cr.define('settings', function() {
9 /** @interface */
10 function OnStartupBrowserProxy() {}
11
12 OnStartupBrowserProxy.prototype = {
dpapad 2016/11/17 01:16:46 Do we need a new Proxy class, given that there is
Dan Beam 2016/11/17 01:33:11 we probably could fold together, yes. but right n
13 /** @return {!Promise<?NtpExtension>} */
14 getNtpExtension: assertNotReached,
15 };
16
17 /**
18 * @constructor
19 * @implements {settings.OnStartupBrowserProxy}
20 */
21 function OnStartupBrowserProxyImpl() {}
22 cr.addSingletonGetter(OnStartupBrowserProxyImpl);
23
24 OnStartupBrowserProxyImpl.prototype = {
25 /** @override */
26 getNtpExtension: function() {
27 return cr.sendWithPromise('getNtpExtension');
28 },
29 };
30
31 return {
32 OnStartupBrowserProxy: OnStartupBrowserProxy,
33 OnStartupBrowserProxyImpl: OnStartupBrowserProxyImpl,
34 };
35 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698