Chromium Code Reviews| Index: chrome/browser/ui/webui/settings/native_certificates_handler.cc |
| diff --git a/chrome/browser/ui/webui/settings/native_certificates_handler.cc b/chrome/browser/ui/webui/settings/native_certificates_handler.cc |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..b00ddd45f1dbdd42145f050c1be0ed0eb6cfa413 |
| --- /dev/null |
| +++ b/chrome/browser/ui/webui/settings/native_certificates_handler.cc |
| @@ -0,0 +1,33 @@ |
| +// 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/native_certificates_handler.h" |
| + |
| +#include "base/bind.h" |
| +#include "base/bind_helpers.h" |
| +#include "chrome/browser/ui/webui/settings_utils.h" |
| +#include "content/public/browser/user_metrics.h" |
| +#include "content/public/browser/web_ui.h" |
| + |
| +namespace settings { |
| + |
| +NativeCertificatesHandler::NativeCertificatesHandler() {} |
| + |
| +NativeCertificatesHandler::~NativeCertificatesHandler() {} |
| + |
| +void NativeCertificatesHandler::RegisterMessages() { |
| + web_ui()->RegisterMessageCallback( |
|
msw
2016/03/31 17:33:25
I kinda surprised this doesn't conflict with chrom
Dan Beam
2016/03/31 17:41:32
/settings/ and /options/ are mutually exclusive (t
dpapad
2016/03/31 17:44:11
It works because browser_options_handler.cc is use
|
| + "showManageSSLCertificates", |
| + base::Bind(&NativeCertificatesHandler::HandleShowManageSSLCertificates, |
| + base::Unretained(this))); |
| +} |
| + |
| +void NativeCertificatesHandler::HandleShowManageSSLCertificates( |
| + const base::ListValue* args) { |
| + content::RecordAction( |
| + base::UserMetricsAction("Options_ManageSSLCertificates")); |
| + settings_utils::ShowManageSSLCertificates(web_ui()->GetWebContents()); |
| +} |
| + |
| +} // namespace settings |