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

Unified Diff: chrome/browser/ui/webui/options/chromeos/cros_language_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/cros_language_options_handler.cc
diff --git a/chrome/browser/ui/webui/options/chromeos/cros_language_options_handler.cc b/chrome/browser/ui/webui/options/chromeos/cros_language_options_handler.cc
index 17a27e5f7ee871ac0ed4a6e589c954a92d5e1c0b..be140f8e199f99926698e3c214094d89d1a31778 100644
--- a/chrome/browser/ui/webui/options/chromeos/cros_language_options_handler.cc
+++ b/chrome/browser/ui/webui/options/chromeos/cros_language_options_handler.cc
@@ -12,6 +12,7 @@
#include "base/bind.h"
#include "base/bind_helpers.h"
#include "base/memory/ptr_util.h"
+#include "base/metrics/user_metrics.h"
#include "base/strings/stringprintf.h"
#include "base/strings/utf_string_conversions.h"
#include "base/values.h"
@@ -32,7 +33,6 @@
#include "components/user_manager/user_manager.h"
#include "components/user_manager/user_type.h"
#include "content/public/browser/navigation_controller.h"
-#include "content/public/browser/user_metrics.h"
#include "content/public/browser/web_contents.h"
#include "extensions/browser/extension_registry.h"
#include "extensions/common/extension.h"
@@ -208,7 +208,7 @@ void CrosLanguageOptionsHandler::SetApplicationLocale(
}
void CrosLanguageOptionsHandler::RestartCallback(const base::ListValue* args) {
- content::RecordAction(UserMetricsAction("LanguageOptions_SignOut"));
+ base::RecordAction(UserMetricsAction("LanguageOptions_SignOut"));
chrome::AttemptUserExit();
}
@@ -218,7 +218,7 @@ void CrosLanguageOptionsHandler::InputMethodDisableCallback(
base::UTF16ToASCII(ExtractStringValue(args));
const std::string action = base::StringPrintf(
"LanguageOptions_DisableInputMethod_%s", input_method_id.c_str());
- content::RecordComputedAction(action);
+ base::RecordComputedAction(action);
}
void CrosLanguageOptionsHandler::InputMethodEnableCallback(
@@ -227,7 +227,7 @@ void CrosLanguageOptionsHandler::InputMethodEnableCallback(
base::UTF16ToASCII(ExtractStringValue(args));
const std::string action = base::StringPrintf(
"LanguageOptions_EnableInputMethod_%s", input_method_id.c_str());
- content::RecordComputedAction(action);
+ base::RecordComputedAction(action);
}
void CrosLanguageOptionsHandler::InputMethodOptionsOpenCallback(

Powered by Google App Engine
This is Rietveld 408576698