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

Unified Diff: chrome/test/data/webui/settings/test_extension_control_browser_proxy.js

Issue 2509543002: MD Settings: create a shared handler/browser proxy to control extensions (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/test/data/webui/settings/test_extension_control_browser_proxy.js
diff --git a/chrome/test/data/webui/settings/test_extension_control_browser_proxy.js b/chrome/test/data/webui/settings/test_extension_control_browser_proxy.js
new file mode 100644
index 0000000000000000000000000000000000000000..2d08c2a9eb05f2f90d5557cb7038282e12ba644d
--- /dev/null
+++ b/chrome/test/data/webui/settings/test_extension_control_browser_proxy.js
@@ -0,0 +1,29 @@
+// 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.
+
+/**
+ * @constructor
+ * @implements {settings.ExtensionControlBrowserProxy}
+ * @extends {settings.TestBrowserProxy}
+ */
+function TestExtensionControlBrowserProxy() {
+ settings.TestBrowserProxy.call(this, [
+ 'disableExtension',
+ 'manageExtension',
+ ]);
+}
+
+TestExtensionControlBrowserProxy.prototype = {
+ __proto__: settings.TestBrowserProxy.prototype,
+
+ /** @override */
+ disableExtension: function(extensionId) {
+ this.methodCalled('disableExtension', extensionId);
+ },
+
+ /** @override */
+ manageExtension: function(extensionId) {
+ this.methodCalled('manageExtension', extensionId);
+ },
+};

Powered by Google App Engine
This is Rietveld 408576698