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

Unified Diff: webkit/plugins/ppapi/ppb_url_util_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_url_request_info_impl.cc ('k') | webkit/plugins/ppapi/ppb_var_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/plugins/ppapi/ppb_url_util_impl.cc
diff --git a/webkit/plugins/ppapi/ppb_url_util_impl.cc b/webkit/plugins/ppapi/ppb_url_util_impl.cc
index 190073127355d56b19e8ca1b56318161a9bd991d..429cbe6a8621b6f3837ac83b8310422e5adea74a 100644
--- a/webkit/plugins/ppapi/ppb_url_util_impl.cc
+++ b/webkit/plugins/ppapi/ppb_url_util_impl.cc
@@ -33,7 +33,7 @@ namespace {
// Returns the PP_Module associated with the given string, or 0 on failure.
PP_Module GetModuleFromVar(PP_Var string_var) {
- scoped_refptr<StringVar> str(StringVar::FromPPVar(string_var));
+ StringVar* str = StringVar::FromPPVar(string_var);
if (!str)
return 0;
return str->pp_module();
@@ -72,7 +72,7 @@ PP_Var ResolveRelativeToDocument(PP_Instance instance_id,
if (!instance)
return PP_MakeNull();
- scoped_refptr<StringVar> relative_string(StringVar::FromPPVar(relative));
+ StringVar* relative_string = StringVar::FromPPVar(relative);
if (!relative_string)
return PP_MakeNull();
@@ -89,7 +89,7 @@ PP_Bool IsSameSecurityOrigin(PP_Var url_a, PP_Var url_b) {
}
PP_Bool DocumentCanRequest(PP_Instance instance, PP_Var url) {
- scoped_refptr<StringVar> url_string(StringVar::FromPPVar(url));
+ StringVar* url_string = StringVar::FromPPVar(url);
if (!url_string)
return PP_FALSE;
« no previous file with comments | « webkit/plugins/ppapi/ppb_url_request_info_impl.cc ('k') | webkit/plugins/ppapi/ppb_var_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698