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

Unified Diff: chrome/browser/content_settings/cookie_settings_factory.cc

Issue 2771233002: Remove the wrapper functions content::RecordAction et al (Closed)
Patch Set: Rebased Created 3 years, 9 months 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/content_settings/cookie_settings_factory.cc
diff --git a/chrome/browser/content_settings/cookie_settings_factory.cc b/chrome/browser/content_settings/cookie_settings_factory.cc
index 14be74594665f0108e3088ed5fd7076657855e4d..8e37338f7c666e267db45747a329c838556b6ddf 100644
--- a/chrome/browser/content_settings/cookie_settings_factory.cc
+++ b/chrome/browser/content_settings/cookie_settings_factory.cc
@@ -5,6 +5,7 @@
#include "chrome/browser/content_settings/cookie_settings_factory.h"
#include "base/logging.h"
+#include "base/metrics/user_metrics.h"
#include "chrome/browser/content_settings/host_content_settings_map_factory.h"
#include "chrome/browser/profiles/incognito_helpers.h"
#include "chrome/browser/profiles/profile.h"
@@ -14,7 +15,6 @@
#include "components/pref_registry/pref_registry_syncable.h"
#include "components/prefs/pref_service.h"
#include "content/public/browser/browser_thread.h"
-#include "content/public/browser/user_metrics.h"
#include "extensions/common/constants.h"
using base::UserMetricsAction;
@@ -59,10 +59,9 @@ CookieSettingsFactory::BuildServiceInstanceFor(
content::BrowserContext* context) const {
Profile* profile = static_cast<Profile*>(context);
if (profile->GetPrefs()->GetBoolean(prefs::kBlockThirdPartyCookies)) {
- content::RecordAction(UserMetricsAction("ThirdPartyCookieBlockingEnabled"));
+ base::RecordAction(UserMetricsAction("ThirdPartyCookieBlockingEnabled"));
} else {
- content::RecordAction(
- UserMetricsAction("ThirdPartyCookieBlockingDisabled"));
+ base::RecordAction(UserMetricsAction("ThirdPartyCookieBlockingDisabled"));
}
return new content_settings::CookieSettings(
HostContentSettingsMapFactory::GetForProfile(profile),

Powered by Google App Engine
This is Rietveld 408576698