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

Unified Diff: chrome/renderer/extensions/i18n_custom_bindings.cc

Issue 98543004: Remove usage of deprecated V8 APIs from c/r/extensions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
Index: chrome/renderer/extensions/i18n_custom_bindings.cc
diff --git a/chrome/renderer/extensions/i18n_custom_bindings.cc b/chrome/renderer/extensions/i18n_custom_bindings.cc
index f657edff05644a517d2b340c7bb9255f74f1a3c5..10946bb0dd7cb76220ef2f32c5c9f276d0a282fc 100644
--- a/chrome/renderer/extensions/i18n_custom_bindings.cc
+++ b/chrome/renderer/extensions/i18n_custom_bindings.cc
@@ -57,7 +57,7 @@ void I18NCustomBindings::GetL10nMessage(
l10n_messages = GetL10nMessagesMap(extension_id);
}
- std::string message_name = *v8::String::AsciiValue(args[0]);
+ std::string message_name = *v8::String::Utf8Value(args[0]);
std::string message =
MessageBundle::GetL10nMessage(message_name, *l10n_messages);

Powered by Google App Engine
This is Rietveld 408576698