Chromium Code Reviews| 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/native_certificates_handler.h" | |
| 6 | |
| 7 #include "base/bind.h" | |
| 8 #include "base/bind_helpers.h" | |
| 9 #include "chrome/browser/ui/webui/settings_utils.h" | |
| 10 #include "content/public/browser/user_metrics.h" | |
| 11 #include "content/public/browser/web_ui.h" | |
| 12 | |
| 13 namespace settings { | |
| 14 | |
| 15 NativeCertificatesHandler::NativeCertificatesHandler() {} | |
| 16 | |
| 17 NativeCertificatesHandler::~NativeCertificatesHandler() {} | |
| 18 | |
| 19 void NativeCertificatesHandler::RegisterMessages() { | |
| 20 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
| |
| 21 "showManageSSLCertificates", | |
| 22 base::Bind(&NativeCertificatesHandler::HandleShowManageSSLCertificates, | |
| 23 base::Unretained(this))); | |
| 24 } | |
| 25 | |
| 26 void NativeCertificatesHandler::HandleShowManageSSLCertificates( | |
| 27 const base::ListValue* args) { | |
| 28 content::RecordAction( | |
| 29 base::UserMetricsAction("Options_ManageSSLCertificates")); | |
| 30 settings_utils::ShowManageSSLCertificates(web_ui()->GetWebContents()); | |
| 31 } | |
| 32 | |
| 33 } // namespace settings | |
| OLD | NEW |