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

Unified Diff: chrome/browser/ui/webui/settings/system_handler.cc

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: stevenjb@ review 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
« no previous file with comments | « chrome/browser/ui/webui/settings/system_handler.h ('k') | chrome/chrome_browser_ui.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/settings/system_handler.cc
diff --git a/chrome/browser/ui/webui/settings/system_handler.cc b/chrome/browser/ui/webui/settings/system_handler.cc
new file mode 100644
index 0000000000000000000000000000000000000000..c7d926911e5e677efd843bac6b43cbd0e1c276a2
--- /dev/null
+++ b/chrome/browser/ui/webui/settings/system_handler.cc
@@ -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.
+
+#include "chrome/browser/ui/webui/settings/system_handler.h"
+
+#include "base/bind.h"
+#include "base/bind_helpers.h"
+#include "base/metrics/user_metrics.h"
+#include "base/metrics/user_metrics_action.h"
+#include "content/public/browser/web_ui.h"
+
+namespace settings {
+
+SystemHandler::SystemHandler() {}
+
+SystemHandler::~SystemHandler() {}
+
+void SystemHandler::RegisterMessages() {
+ web_ui()->RegisterMessageCallback("changeProxySettings",
+ base::Bind(&SystemHandler::HandleChangeProxySettings,
+ base::Unretained(this)));
+}
+
+void SystemHandler::HandleChangeProxySettings(const base::ListValue* /*args*/) {
+ base::RecordAction(base::UserMetricsAction("Options_ShowProxySettings"));
+ // TODO(dbeam): port AdvancedOptionsUtilities::ShowNetworkProxySettings from
+ // advanced_options_utils.h to new, settings accessible place.
+}
+
+} // namespace settings
« no previous file with comments | « chrome/browser/ui/webui/settings/system_handler.h ('k') | chrome/chrome_browser_ui.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698