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

Unified 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: merge 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/settings/on_startup_page/on_startup_browser_proxy.js
diff --git a/chrome/browser/resources/settings/on_startup_page/on_startup_browser_proxy.js b/chrome/browser/resources/settings/on_startup_page/on_startup_browser_proxy.js
new file mode 100644
index 0000000000000000000000000000000000000000..a99f6185b54e5ae5132999de1f2966ce4111d211
--- /dev/null
+++ b/chrome/browser/resources/settings/on_startup_page/on_startup_browser_proxy.js
@@ -0,0 +1,35 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+/** @typedef {{id: string, name: string, canBeDisabled: boolean}} */
+var NtpExtension;
+
+cr.define('settings', function() {
+ /** @interface */
+ function OnStartupBrowserProxy() {}
+
+ OnStartupBrowserProxy.prototype = {
+ /** @return {!Promise<?NtpExtension>} */
+ getNtpExtension: assertNotReached,
+ };
+
+ /**
+ * @constructor
+ * @implements {settings.OnStartupBrowserProxy}
+ */
+ function OnStartupBrowserProxyImpl() {}
+ cr.addSingletonGetter(OnStartupBrowserProxyImpl);
+
+ OnStartupBrowserProxyImpl.prototype = {
+ /** @override */
+ getNtpExtension: function() {
+ return cr.sendWithPromise('getNtpExtension');
+ },
+ };
+
+ return {
+ OnStartupBrowserProxy: OnStartupBrowserProxy,
+ OnStartupBrowserProxyImpl: OnStartupBrowserProxyImpl,
+ };
+});

Powered by Google App Engine
This is Rietveld 408576698