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

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

Issue 176843022: Move UTF16ToASCII, remove WideToASCII. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 c753a736977f5e8c9c3064ce01f70092a7728d8e..fec16e0b2c8758335b75adcad7b839dc020f6a4c 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
@@ -408,7 +408,8 @@ void CrosLanguageOptionsHandler::RestartCallback(const base::ListValue* args) {
void CrosLanguageOptionsHandler::InputMethodDisableCallback(
const base::ListValue* args) {
- const std::string input_method_id = UTF16ToASCII(ExtractStringValue(args));
+ const std::string input_method_id =
+ base::UTF16ToASCII(ExtractStringValue(args));
const std::string action = base::StringPrintf(
"LanguageOptions_DisableInputMethod_%s", input_method_id.c_str());
content::RecordComputedAction(action);
@@ -416,7 +417,8 @@ void CrosLanguageOptionsHandler::InputMethodDisableCallback(
void CrosLanguageOptionsHandler::InputMethodEnableCallback(
const base::ListValue* args) {
- const std::string input_method_id = UTF16ToASCII(ExtractStringValue(args));
+ const std::string input_method_id =
+ base::UTF16ToASCII(ExtractStringValue(args));
const std::string action = base::StringPrintf(
"LanguageOptions_EnableInputMethod_%s", input_method_id.c_str());
content::RecordComputedAction(action);
@@ -424,7 +426,8 @@ void CrosLanguageOptionsHandler::InputMethodEnableCallback(
void CrosLanguageOptionsHandler::InputMethodOptionsOpenCallback(
const base::ListValue* args) {
- const std::string input_method_id = UTF16ToASCII(ExtractStringValue(args));
+ const std::string input_method_id =
+ base::UTF16ToASCII(ExtractStringValue(args));
const std::string extension_id =
extension_ime_util::GetExtensionIDFromInputMethodID(input_method_id);
if (extension_id.empty())
« no previous file with comments | « chrome/browser/ui/webui/ntp/android/promo_handler.cc ('k') | chrome/browser/ui/webui/options/core_options_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698