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

Side by Side Diff: chrome/browser/ui/webui/settings/native_certificates_handler.cc

Issue 2771233002: Remove the wrapper functions content::RecordAction et al (Closed)
Patch Set: Rebased Created 3 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
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/webui/settings/native_certificates_handler.h" 5 #include "chrome/browser/ui/webui/settings/native_certificates_handler.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/metrics/user_metrics.h"
9 #include "chrome/browser/ui/webui/settings_utils.h" 10 #include "chrome/browser/ui/webui/settings_utils.h"
10 #include "content/public/browser/user_metrics.h"
11 #include "content/public/browser/web_ui.h" 11 #include "content/public/browser/web_ui.h"
12 12
13 namespace settings { 13 namespace settings {
14 14
15 NativeCertificatesHandler::NativeCertificatesHandler() {} 15 NativeCertificatesHandler::NativeCertificatesHandler() {}
16 16
17 NativeCertificatesHandler::~NativeCertificatesHandler() {} 17 NativeCertificatesHandler::~NativeCertificatesHandler() {}
18 18
19 void NativeCertificatesHandler::RegisterMessages() { 19 void NativeCertificatesHandler::RegisterMessages() {
20 web_ui()->RegisterMessageCallback( 20 web_ui()->RegisterMessageCallback(
21 "showManageSSLCertificates", 21 "showManageSSLCertificates",
22 base::Bind(&NativeCertificatesHandler::HandleShowManageSSLCertificates, 22 base::Bind(&NativeCertificatesHandler::HandleShowManageSSLCertificates,
23 base::Unretained(this))); 23 base::Unretained(this)));
24 } 24 }
25 25
26 void NativeCertificatesHandler::HandleShowManageSSLCertificates( 26 void NativeCertificatesHandler::HandleShowManageSSLCertificates(
27 const base::ListValue* args) { 27 const base::ListValue* args) {
28 content::RecordAction( 28 base::RecordAction(base::UserMetricsAction("Options_ManageSSLCertificates"));
29 base::UserMetricsAction("Options_ManageSSLCertificates"));
30 settings_utils::ShowManageSSLCertificates(web_ui()->GetWebContents()); 29 settings_utils::ShowManageSSLCertificates(web_ui()->GetWebContents());
31 } 30 }
32 31
33 } // namespace settings 32 } // namespace settings
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/settings/downloads_handler.cc ('k') | chrome/browser/ui/webui/settings/reset_settings_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698