| Index: webkit/plugins/ppapi/resource_creation_impl.cc
|
| diff --git a/webkit/plugins/ppapi/resource_creation_impl.cc b/webkit/plugins/ppapi/resource_creation_impl.cc
|
| index 0aafe502e652a851dfadb2ea588834d083636081..6ecde575af58a01d758b538bceb66dd61f312597 100644
|
| --- a/webkit/plugins/ppapi/resource_creation_impl.cc
|
| +++ b/webkit/plugins/ppapi/resource_creation_impl.cc
|
| @@ -197,8 +197,8 @@ PP_Resource ResourceCreationImpl::CreateKeyboardInputEvent(
|
| data.event_modifiers = modifiers;
|
| data.key_code = key_code;
|
| if (character_text.type == PP_VARTYPE_STRING) {
|
| - scoped_refptr<StringVar> string_var(StringVar::FromPPVar(character_text));
|
| - if (!string_var.get())
|
| + StringVar* string_var = StringVar::FromPPVar(character_text);
|
| + if (!string_var)
|
| return 0;
|
| data.character_text = string_var->value();
|
| }
|
|
|