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

Unified Diff: chrome/renderer/pepper/ppb_pdf_impl.cc

Issue 15836003: Update chrome/ to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 years, 7 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 | « chrome/renderer/mock_printer.cc ('k') | chrome/service/cloud_print/cloud_print_proxy_backend.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/pepper/ppb_pdf_impl.cc
diff --git a/chrome/renderer/pepper/ppb_pdf_impl.cc b/chrome/renderer/pepper/ppb_pdf_impl.cc
index 6cb3bbec6ee84db90c4d0dff514ae102be0787a0..e436a5fa04d514b82f63345613da2109ec24afe3 100644
--- a/chrome/renderer/pepper/ppb_pdf_impl.cc
+++ b/chrome/renderer/pepper/ppb_pdf_impl.cc
@@ -203,7 +203,7 @@ PP_Resource GetFontFileWithFallback(
scoped_refptr<ppapi::StringVar> face_name(ppapi::StringVar::FromPPVar(
description->face));
- if (!face_name)
+ if (!face_name.get())
return 0;
int fd = content::MatchFontWithFallback(
@@ -322,7 +322,7 @@ void HistogramPDFPageCount(PP_Instance /*instance*/, int count) {
void UserMetricsRecordAction(PP_Instance /*instance*/, PP_Var action) {
scoped_refptr<ppapi::StringVar> action_str(
ppapi::StringVar::FromPPVar(action));
- if (action_str)
+ if (action_str.get())
RenderThread::Get()->RecordUserMetrics(action_str->value());
}
@@ -403,7 +403,7 @@ PP_Resource GetResourceImageForScale(PP_Instance instance_id,
return 0;
}
- webkit::ppapi::ImageDataAutoMapper mapper(image_data);
+ webkit::ppapi::ImageDataAutoMapper mapper(image_data.get());
if (!mapper.is_valid())
return 0;
« no previous file with comments | « chrome/renderer/mock_printer.cc ('k') | chrome/service/cloud_print/cloud_print_proxy_backend.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698