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

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

Issue 1838273003: MD Settings: Hooking up native certificate manager. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Spaces. 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/native_certificates_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/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(
+ "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
« no previous file with comments | « chrome/browser/ui/webui/settings/native_certificates_handler.h ('k') | chrome/chrome_browser_ui.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698