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

Unified Diff: components/pdf/renderer/ppb_pdf_impl.cc

Issue 536623003: Fixups in components/ for scoped_refptr operator T* removal. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 3 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 | « components/password_manager/core/browser/password_store.cc ('k') | device/usb/usb_device_handle_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/pdf/renderer/ppb_pdf_impl.cc
diff --git a/components/pdf/renderer/ppb_pdf_impl.cc b/components/pdf/renderer/ppb_pdf_impl.cc
index abfc7f8f501a393f86d18884d7f75ee95b758634..3667c47722f9d3d98121d1000564d3bc10d48c7f 100644
--- a/components/pdf/renderer/ppb_pdf_impl.cc
+++ b/components/pdf/renderer/ppb_pdf_impl.cc
@@ -82,7 +82,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(
@@ -209,7 +209,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())
content::RenderThread::Get()->RecordComputedAction(action_str->value());
}
« no previous file with comments | « components/password_manager/core/browser/password_store.cc ('k') | device/usb/usb_device_handle_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698