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

Unified Diff: chrome/browser/first_run/first_run.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/extensions/installed_loader.cc ('k') | chrome/browser/first_run/first_run_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/first_run/first_run.cc
diff --git a/chrome/browser/first_run/first_run.cc b/chrome/browser/first_run/first_run.cc
index b03e3222e2292e253172ad28a7de78826ef52127..fb9392926e4ed62117da3a1eee616d159f442630 100644
--- a/chrome/browser/first_run/first_run.cc
+++ b/chrome/browser/first_run/first_run.cc
@@ -31,7 +31,7 @@
#include "chrome/installer/util/master_preferences.h"
#include "chrome/installer/util/master_preferences_constants.h"
#include "chrome/installer/util/util_constants.h"
-#include "content/browser/user_metrics.h"
+#include "content/public/browser/user_metrics.h"
#include "googleurl/src/gurl.h"
#if defined(OS_WIN)
@@ -40,6 +40,8 @@
#include "chrome/installer/util/install_util.h"
#endif
+using content::UserMetricsAction;
+
namespace {
// The kSentinelFile file absence will tell us it is a first run.
@@ -618,7 +620,7 @@ void FirstRun::AutoImport(
ImportSettings(profile, importer_host, importer_list, items);
}
- UserMetrics::RecordAction(UserMetricsAction("FirstRunDef_Accept"));
+ content::RecordAction(UserMetricsAction("FirstRunDef_Accept"));
// Launch the search engine dialog only for certain builds, and only if the
// user has not already set preferences.
« no previous file with comments | « chrome/browser/extensions/installed_loader.cc ('k') | chrome/browser/first_run/first_run_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698