| OLD | NEW |
| (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 #include "chrome/browser/ui/webui/settings/system_handler.h" |
| 6 |
| 7 #include "base/bind.h" |
| 8 #include "base/bind_helpers.h" |
| 9 #include "base/metrics/user_metrics.h" |
| 10 #include "base/metrics/user_metrics_action.h" |
| 11 #include "content/public/browser/web_ui.h" |
| 12 |
| 13 namespace settings { |
| 14 |
| 15 SystemHandler::SystemHandler() {} |
| 16 |
| 17 SystemHandler::~SystemHandler() {} |
| 18 |
| 19 void SystemHandler::RegisterMessages() { |
| 20 web_ui()->RegisterMessageCallback("changeProxySettings", |
| 21 base::Bind(&SystemHandler::HandleChangeProxySettings, |
| 22 base::Unretained(this))); |
| 23 } |
| 24 |
| 25 void SystemHandler::HandleChangeProxySettings(const base::ListValue* /*args*/) { |
| 26 base::RecordAction(base::UserMetricsAction("Options_ShowProxySettings")); |
| 27 // TODO(dbeam): port AdvancedOptionsUtilities::ShowNetworkProxySettings from |
| 28 // advanced_options_utils.h to new, settings accessible place. |
| 29 } |
| 30 |
| 31 } // namespace settings |
| OLD | NEW |