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

Unified Diff: chrome/browser/ui/webui/options2/chromeos/cros_language_options_handler.cc

Issue 8910015: Options: Fix CrOS that slipped underneath. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/options2/chromeos/cros_language_options_handler.cc
diff --git a/chrome/browser/ui/webui/options2/chromeos/cros_language_options_handler.cc b/chrome/browser/ui/webui/options2/chromeos/cros_language_options_handler.cc
index 6fc2dce5af325971fe637b4a314820a44841d570..29f5c0aafa489786e3e0613f361914972e7897a5 100644
--- a/chrome/browser/ui/webui/options2/chromeos/cros_language_options_handler.cc
+++ b/chrome/browser/ui/webui/options2/chromeos/cros_language_options_handler.cc
@@ -25,6 +25,8 @@
#include "grit/generated_resources.h"
#include "ui/base/l10n/l10n_util.h"
+using content::UserMetricsAction;
+
namespace chromeos {
CrosLanguageOptionsHandler::CrosLanguageOptionsHandler() {
@@ -207,7 +209,7 @@ void CrosLanguageOptionsHandler::SetApplicationLocale(
}
void CrosLanguageOptionsHandler::RestartCallback(const ListValue* args) {
- UserMetrics::RecordAction(UserMetricsAction("LanguageOptions_SignOut"));
+ content::RecordAction(UserMetricsAction("LanguageOptions_SignOut"));
Browser* browser = Browser::GetBrowserForController(
&web_ui_->tab_contents()->controller(), NULL);
@@ -220,7 +222,7 @@ void CrosLanguageOptionsHandler::InputMethodDisableCallback(
const std::string input_method_id = UTF16ToASCII(ExtractStringValue(args));
const std::string action = base::StringPrintf(
"LanguageOptions_DisableInputMethod_%s", input_method_id.c_str());
- UserMetrics::RecordComputedAction(action);
+ content::RecordComputedAction(action);
}
void CrosLanguageOptionsHandler::InputMethodEnableCallback(
@@ -228,7 +230,7 @@ void CrosLanguageOptionsHandler::InputMethodEnableCallback(
const std::string input_method_id = UTF16ToASCII(ExtractStringValue(args));
const std::string action = base::StringPrintf(
"LanguageOptions_EnableInputMethod_%s", input_method_id.c_str());
- UserMetrics::RecordComputedAction(action);
+ content::RecordComputedAction(action);
}
void CrosLanguageOptionsHandler::InputMethodOptionsOpenCallback(
@@ -236,7 +238,7 @@ void CrosLanguageOptionsHandler::InputMethodOptionsOpenCallback(
const std::string input_method_id = UTF16ToASCII(ExtractStringValue(args));
const std::string action = base::StringPrintf(
"InputMethodOptions_Open_%s", input_method_id.c_str());
- UserMetrics::RecordComputedAction(action);
+ content::RecordComputedAction(action);
}
} // namespace chromeos
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698