summaryrefslogtreecommitdiffstats
path: root/chrome/browser/custom_handlers
diff options
context:
space:
mode:
authorjoi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-14 13:23:38 +0000
committerjoi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-14 13:23:38 +0000
commit7f6f44c9e44707612415d4c85cfe9924aeacd917 (patch)
tree167b6d29691a127ef3ab1ada5b6f9c774d99363d /chrome/browser/custom_handlers
parent7af0889d30c9a27b916aa49d4bfea7ea92465072 (diff)
downloadchromium_src-7f6f44c9e44707612415d4c85cfe9924aeacd917.zip
chromium_src-7f6f44c9e44707612415d4c85cfe9924aeacd917.tar.gz
chromium_src-7f6f44c9e44707612415d4c85cfe9924aeacd917.tar.bz2
Split UserMetrics into API vs. implementation. Move API to content/public.
TBR=davemoore@chromium.org BUG=98716 Review URL: http://codereview.chromium.org/8919017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114416 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/custom_handlers')
-rw-r--r--chrome/browser/custom_handlers/register_protocol_handler_infobar_delegate.cc10
1 files changed, 6 insertions, 4 deletions
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 6517cb7..957f33b 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(),