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

Unified Diff: chrome/browser/search_engines/template_url.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
Index: chrome/browser/search_engines/template_url.cc
diff --git a/chrome/browser/search_engines/template_url.cc b/chrome/browser/search_engines/template_url.cc
index d4cae885c088b9f636051e064a241c6005141470..fc6e1fc434675357f0febe22da6aa2d598e9fac9 100644
--- a/chrome/browser/search_engines/template_url.cc
+++ b/chrome/browser/search_engines/template_url.cc
@@ -18,10 +18,13 @@
#include "chrome/browser/search_engines/template_url_service.h"
#include "chrome/common/guid.h"
#include "chrome/common/url_constants.h"
-#include "content/browser/user_metrics.h"
+#include "content/public/browser/user_metrics.h"
#include "net/base/escape.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/gfx/favicon_size.h"
+
+using content::UserMetricsAction;
+
// TODO(pastarmovj): Remove google_update_settings and user_metrics when the
// CollectRLZMetrics function is not needed anymore.
@@ -577,9 +580,9 @@ void TemplateURLRef::CollectRLZMetrics() const {
!google_util::IsOrganic(brand)) {
// Now we know we should have had RLZ token check if there was one.
if (url().find("rlz=") != std::string::npos)
- UserMetrics::RecordAction(UserMetricsAction("SearchWithRLZ"));
+ content::RecordAction(UserMetricsAction("SearchWithRLZ"));
else
- UserMetrics::RecordAction(UserMetricsAction("SearchWithoutRLZ"));
+ content::RecordAction(UserMetricsAction("SearchWithoutRLZ"));
}
return;
}
« no previous file with comments | « chrome/browser/safe_browsing/safe_browsing_blocking_page.cc ('k') | chrome/browser/tab_contents/render_view_context_menu.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698