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

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

Issue 11275088: Remove implicit scoped_refptr operator T* Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 8 years, 2 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 057d0a6143484bd0f4b97a5712344edd9df7ca6c..a8d4cb5319fcaa1e9186bc0af7fd268f6083171f 100644
--- a/chrome/renderer/pepper/ppb_pdf_impl.cc
+++ b/chrome/renderer/pepper/ppb_pdf_impl.cc
@@ -167,7 +167,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(
@@ -286,7 +286,7 @@ void HistogramPDFPageCount(int count) {
void UserMetricsRecordAction(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());
}
@@ -367,7 +367,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