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

Side by Side 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: Modify ifdefs per feedback Created 4 years, 8 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 unified diff | Download patch
OLDNEW
(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
Dan Beam 2016/03/31 00:20:57 remove \n
dpapad 2016/03/31 01:15:03 Done.
13
14 namespace settings {
15
16 NativeCertificatesHandler::NativeCertificatesHandler() {}
17
18 NativeCertificatesHandler::~NativeCertificatesHandler() {}
19
20 void NativeCertificatesHandler::RegisterMessages() {
21 web_ui()->RegisterMessageCallback(
22 "showManageSSLCertificates",
23 base::Bind(&NativeCertificatesHandler::HandleShowManageSSLCertificates,
24 base::Unretained(this)));
25 }
26
27 void NativeCertificatesHandler::HandleShowManageSSLCertificates(
28 const base::ListValue* args) {
29 content::RecordAction(
30 base::UserMetricsAction("Options_ManageSSLCertificates"));
31 settings_utils::ShowManageSSLCertificates(web_ui()->GetWebContents());
32 }
33
34 } // namespace settings
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698