| Index: chrome/browser/custom_handlers/register_protocol_handler_infobar_delegate.cc
|
| diff --git a/chrome/browser/custom_handlers/register_protocol_handler_infobar_delegate.cc b/chrome/browser/custom_handlers/register_protocol_handler_infobar_delegate.cc
|
| index 6517cb7d163bb4f3086e7433a143521a0d1e1f7b..957f33bcf24e8642f5acef0250b997c50cab1ee3 100644
|
| --- a/chrome/browser/custom_handlers/register_protocol_handler_infobar_delegate.cc
|
| +++ b/chrome/browser/custom_handlers/register_protocol_handler_infobar_delegate.cc
|
| @@ -10,10 +10,12 @@
|
| #include "chrome/browser/infobars/infobar_tab_helper.h"
|
| #include "chrome/common/url_constants.h"
|
| #include "content/browser/tab_contents/tab_contents.h"
|
| -#include "content/browser/user_metrics.h"
|
| +#include "content/public/browser/user_metrics.h"
|
| #include "grit/generated_resources.h"
|
| #include "ui/base/l10n/l10n_util.h"
|
|
|
| +using content::UserMetricsAction;
|
| +
|
| RegisterProtocolHandlerInfoBarDelegate::RegisterProtocolHandlerInfoBarDelegate(
|
| InfoBarTabHelper* infobar_helper,
|
| ProtocolHandlerRegistry* registry,
|
| @@ -70,14 +72,14 @@ bool RegisterProtocolHandlerInfoBarDelegate::NeedElevation(
|
| }
|
|
|
| bool RegisterProtocolHandlerInfoBarDelegate::Accept() {
|
| - UserMetrics::RecordAction(
|
| + content::RecordAction(
|
| UserMetricsAction("RegisterProtocolHandler.Infobar_Accept"));
|
| registry_->OnAcceptRegisterProtocolHandler(handler_);
|
| return true;
|
| }
|
|
|
| bool RegisterProtocolHandlerInfoBarDelegate::Cancel() {
|
| - UserMetrics::RecordAction(
|
| + content::RecordAction(
|
| UserMetricsAction("RegisterProtocolHandler.InfoBar_Deny"));
|
| registry_->OnIgnoreRegisterProtocolHandler(handler_);
|
| return true;
|
| @@ -89,7 +91,7 @@ string16 RegisterProtocolHandlerInfoBarDelegate::GetLinkText() const {
|
|
|
| bool RegisterProtocolHandlerInfoBarDelegate::LinkClicked(
|
| WindowOpenDisposition disposition) {
|
| - UserMetrics::RecordAction(
|
| + content::RecordAction(
|
| UserMetricsAction("RegisterProtocolHandler.InfoBar_LearnMore"));
|
| owner()->tab_contents()->OpenURL(google_util::AppendGoogleLocaleParam(GURL(
|
| chrome::kLearnMoreRegisterProtocolHandlerURL)), GURL(),
|
|
|