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

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: 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/plugin_observer.cc ('k') | chrome/browser/profiles/profile_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/profile_impl.cc
diff --git a/chrome/browser/profiles/profile_impl.cc b/chrome/browser/profiles/profile_impl.cc
index 57bcfecc044a4bebf2382b5f191311c21c409d8e..2f1610a93cf2ee0e16cd3cb51710eb4d4b53c957 100644
--- a/chrome/browser/profiles/profile_impl.cc
+++ b/chrome/browser/profiles/profile_impl.cc
@@ -105,10 +105,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"
@@ -144,6 +144,7 @@
using base::Time;
using base::TimeDelta;
using content::BrowserThread;
+using content::UserMetricsAction;
namespace {
@@ -346,10 +347,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"));
}
« no previous file with comments | « chrome/browser/plugin_observer.cc ('k') | chrome/browser/profiles/profile_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698