Index: extensions/renderer/runtime_custom_bindings.cc |
diff --git a/extensions/renderer/runtime_custom_bindings.cc b/extensions/renderer/runtime_custom_bindings.cc |
index a7a5ff6cf4fd3b1262e4f56dae03e89506ed837d..6e10e104c1abcb00a3b5249747198bf656ff928a 100644 |
--- a/extensions/renderer/runtime_custom_bindings.cc |
+++ b/extensions/renderer/runtime_custom_bindings.cc |
@@ -125,8 +125,8 @@ void RuntimeCustomBindings::GetExtensionViews( |
// all views for the current extension. |
int browser_window_id = args[0]->Int32Value(); |
- std::string view_type_string = *v8::String::Utf8Value(args[1]); |
- base::StringToUpperASCII(&view_type_string); |
+ std::string view_type_string = |
+ base::ToUpperASCII(*v8::String::Utf8Value(args[1])); |
// |view_type| == VIEW_TYPE_INVALID means getting any type of |
// views. |
ViewType view_type = VIEW_TYPE_INVALID; |