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

Unified Diff: chrome/browser/resources/settings/system_page/system_page_delegate.js

Issue 1775803002: MD Settings: add a semi-functional System page (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@v2-md_history
Patch Set: fixes Created 4 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/settings/system_page/system_page_delegate.js
diff --git a/chrome/browser/resources/settings/system_page/system_page_delegate.js b/chrome/browser/resources/settings/system_page/system_page_delegate.js
new file mode 100644
index 0000000000000000000000000000000000000000..c355a7b37cea37c16d0400fd04674c80fc30f07b
--- /dev/null
+++ b/chrome/browser/resources/settings/system_page/system_page_delegate.js
@@ -0,0 +1,31 @@
+// 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.
+
stevenjb 2016/03/08 23:13:31 nit: @fileoverview for newcomers to the code.
Dan Beam 2016/03/09 02:31:31 Done.
+cr.define('settings', function() {
+ /** @interface */
+ function SystemPageDelegate() {}
+
+ SystemPageDelegate.prototype = {
+ /** Allows the user to change native system proxy settings. */
+ changeProxySettings: assertNotReached,
+ };
+
+ /**
+ * @constructor
+ * @implements {settings.SystemPageDelegate}
+ */
+ function SystemPageDelegateImpl() {}
+
+ SystemPageDelegateImpl.prototype = {
+ /** @override */
+ changeProxySettings: function() {
+ chrome.send('changeProxySettings');
+ },
+ };
+
+ return {
+ SystemPageDelegate: SystemPageDelegate,
+ SystemPageDelegateImpl: SystemPageDelegateImpl,
+ };
+});

Powered by Google App Engine
This is Rietveld 408576698