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

Unified Diff: chrome/browser/profiles/profile_impl.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: Move to content namespace. Update usages. Update extract_actions tool. 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/profiles/profile_impl.cc
diff --git a/chrome/browser/profiles/profile_impl.cc b/chrome/browser/profiles/profile_impl.cc
index abbcf2890b28140dfa42a405e15e1c599546fb11..1f8176d1275be71859f826a7308d3a07da4f90fb 100644
--- a/chrome/browser/profiles/profile_impl.cc
+++ b/chrome/browser/profiles/profile_impl.cc
@@ -104,10 +104,10 @@
#include "content/browser/in_process_webkit/webkit_context.h"
#include "content/browser/speech/speech_input_manager.h"
#include "content/browser/ssl/ssl_host_state.h"
-#include "content/browser/user_metrics.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/notification_service.h"
#include "content/public/browser/render_process_host.h"
+#include "content/public/browser/user_metrics.h"
#include "grit/locale_settings.h"
#include "net/base/transport_security_state.h"
#include "net/http/http_server_properties.h"
@@ -143,6 +143,7 @@
using base::Time;
using base::TimeDelta;
using content::BrowserThread;
+using content::UserMetricsAction;
namespace {
@@ -337,10 +338,10 @@ void ProfileImpl::DoFinalInit() {
clear_local_state_on_exit_ = prefs->GetBoolean(prefs::kClearSiteDataOnExit);
if (clear_local_state_on_exit_) {
- UserMetrics::RecordAction(
+ content::RecordAction(
UserMetricsAction("ClearSiteDataOnExitEnabled"));
} else {
- UserMetrics::RecordAction(
+ content::RecordAction(
UserMetricsAction("ClearSiteDataOnExitDisabled"));
}

Powered by Google App Engine
This is Rietveld 408576698