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

Unified Diff: chrome/browser/autocomplete/autocomplete_edit.cc

Issue 8919017: Split UserMetrics into API vs. implementation. Move API to content/public. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Version for commit (merged again). Created 9 years 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/app_controller_mac.mm ('k') | chrome/browser/background/background_mode_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autocomplete/autocomplete_edit.cc
diff --git a/chrome/browser/autocomplete/autocomplete_edit.cc b/chrome/browser/autocomplete/autocomplete_edit.cc
index aefa775aee26aa87b9aa8f46decf846f2dda143c..f6a115cc63383f500d8e96f8745efe6ef202d58f 100644
--- a/chrome/browser/autocomplete/autocomplete_edit.cc
+++ b/chrome/browser/autocomplete/autocomplete_edit.cc
@@ -42,12 +42,14 @@
#include "chrome/common/url_constants.h"
#include "content/browser/renderer_host/render_view_host.h"
#include "content/browser/tab_contents/tab_contents.h"
-#include "content/browser/user_metrics.h"
#include "content/public/browser/notification_service.h"
+#include "content/public/browser/user_metrics.h"
#include "googleurl/src/gurl.h"
#include "googleurl/src/url_util.h"
#include "third_party/skia/include/core/SkBitmap.h"
+using content::UserMetricsAction;
+
///////////////////////////////////////////////////////////////////////////////
// AutocompleteEditController
@@ -548,7 +550,7 @@ void AutocompleteEditModel::OpenMatch(const AutocompleteMatch& match,
}
if (template_url) {
- UserMetrics::RecordAction(UserMetricsAction("AcceptedKeyword"));
+ content::RecordAction(UserMetricsAction("AcceptedKeyword"));
template_url_service->IncrementUsageCount(template_url);
if (match.transition == content::PAGE_TRANSITION_KEYWORD ||
@@ -607,7 +609,7 @@ bool AutocompleteEditModel::AcceptKeyword() {
// since the edit contents have disappeared. It
// doesn't really matter, but we clear it to be
// consistent.
- UserMetrics::RecordAction(UserMetricsAction("AcceptedKeywordHint"));
+ content::RecordAction(UserMetricsAction("AcceptedKeywordHint"));
return true;
}
« no previous file with comments | « chrome/browser/app_controller_mac.mm ('k') | chrome/browser/background/background_mode_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698