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

Unified Diff: chrome/browser/gpu/gpu_mode_manager.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/gpu/gpu_mode_manager.cc
diff --git a/chrome/browser/gpu/gpu_mode_manager.cc b/chrome/browser/gpu/gpu_mode_manager.cc
index c0e1e6834e68d798e03599572bfb7f72b5e0e66f..ec2de3bcd8c082381f12d018fb3624df0586e313 100644
--- a/chrome/browser/gpu/gpu_mode_manager.cc
+++ b/chrome/browser/gpu/gpu_mode_manager.cc
@@ -6,12 +6,12 @@
#include "base/bind.h"
#include "base/metrics/histogram_macros.h"
+#include "base/metrics/user_metrics.h"
#include "chrome/browser/browser_process.h"
#include "chrome/common/pref_names.h"
#include "components/prefs/pref_registry_simple.h"
#include "components/prefs/pref_service.h"
#include "content/public/browser/gpu_data_manager.h"
-#include "content/public/browser/user_metrics.h"
using base::UserMetricsAction;
@@ -56,9 +56,9 @@ GpuModeManager::GpuModeManager()
UMA_HISTOGRAM_BOOLEAN("GPU.HardwareAccelerationModeEnabled",
initial_gpu_mode_pref_);
if (previous_gpu_mode_pref && !initial_gpu_mode_pref_)
- content::RecordAction(UserMetricsAction("GpuAccelerationDisabled"));
+ base::RecordAction(UserMetricsAction("GpuAccelerationDisabled"));
if (!previous_gpu_mode_pref && initial_gpu_mode_pref_)
- content::RecordAction(UserMetricsAction("GpuAccelerationEnabled"));
+ base::RecordAction(UserMetricsAction("GpuAccelerationEnabled"));
if (!initial_gpu_mode_pref_) {
content::GpuDataManager* gpu_data_manager =

Powered by Google App Engine
This is Rietveld 408576698