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

Unified Diff: chrome/browser/ui/webui/options/chromeos/stats_options_handler.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/ui/webui/options/chromeos/stats_options_handler.cc
diff --git a/chrome/browser/ui/webui/options/chromeos/stats_options_handler.cc b/chrome/browser/ui/webui/options/chromeos/stats_options_handler.cc
index 7f3c3a47fa9d3a4ab86a25fccfc5c4b5ab8b5b8c..93048cbafeb9d1a853f39489b96fc11571314e51 100644
--- a/chrome/browser/ui/webui/options/chromeos/stats_options_handler.cc
+++ b/chrome/browser/ui/webui/options/chromeos/stats_options_handler.cc
@@ -6,9 +6,9 @@
#include "base/bind.h"
#include "base/bind_helpers.h"
+#include "base/metrics/user_metrics.h"
#include "base/strings/utf_string_conversions.h"
#include "base/values.h"
-#include "content/public/browser/user_metrics.h"
#include "content/public/browser/web_ui.h"
using base::UserMetricsAction;
@@ -36,10 +36,9 @@ void StatsOptionsHandler::HandleMetricsReportingCheckbox(
#if defined(GOOGLE_CHROME_BUILD)
const std::string checked_str = base::UTF16ToUTF8(ExtractStringValue(args));
const bool enabled = (checked_str == "true");
- content::RecordAction(
- enabled ?
- UserMetricsAction("Options_MetricsReportingCheckbox_Enable") :
- UserMetricsAction("Options_MetricsReportingCheckbox_Disable"));
+ base::RecordAction(
+ enabled ? UserMetricsAction("Options_MetricsReportingCheckbox_Enable")
+ : UserMetricsAction("Options_MetricsReportingCheckbox_Disable"));
#endif
}

Powered by Google App Engine
This is Rietveld 408576698