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

Unified Diff: webkit/plugins/ppapi/ppb_font_impl.cc

Issue 7621054: Don't use a scoped_refptr for StringVar::FromPPVar (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 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
« no previous file with comments | « webkit/plugins/ppapi/ppb_flash_impl_linux.cc ('k') | webkit/plugins/ppapi/ppb_transport_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/plugins/ppapi/ppb_font_impl.cc
diff --git a/webkit/plugins/ppapi/ppb_font_impl.cc b/webkit/plugins/ppapi/ppb_font_impl.cc
index fbbddea43641ddd4a2ee49f452b67a002860574e..8db4ed67fbc74671a76b340557328759212fdf29 100644
--- a/webkit/plugins/ppapi/ppb_font_impl.cc
+++ b/webkit/plugins/ppapi/ppb_font_impl.cc
@@ -30,7 +30,7 @@ namespace {
// False means the input was invalid.
bool PPTextRunToTextRun(const PP_TextRun_Dev* run,
WebKitForwarding::Font::TextRun* output) {
- scoped_refptr<StringVar> text_string(StringVar::FromPPVar(run->text));
+ StringVar* text_string = StringVar::FromPPVar(run->text);
if (!text_string)
return false;
@@ -45,7 +45,7 @@ bool PPTextRunToTextRun(const PP_TextRun_Dev* run,
PPB_Font_Impl::PPB_Font_Impl(PluginInstance* instance,
const PP_FontDescription_Dev& desc)
: Resource(instance) {
- scoped_refptr<StringVar> face_name(StringVar::FromPPVar(desc.face));
+ StringVar* face_name = StringVar::FromPPVar(desc.face);
WebKitForwarding::Font* result = NULL;
instance->module()->GetWebKitForwarding()->CreateFontForwarding(
« no previous file with comments | « webkit/plugins/ppapi/ppb_flash_impl_linux.cc ('k') | webkit/plugins/ppapi/ppb_transport_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698