diff options
author | dcheng <dcheng@chromium.org> | 2014-09-03 21:22:38 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-09-04 04:24:53 +0000 |
commit | 972bc39f4a28fa510bfb8c61f94e2e9b1897790f (patch) | |
tree | 132ee11d49a8a11b669e30e568e9fe6b51dc6f8b /components/pdf | |
parent | 97b7fc9ff9b9eade1654f1394b5992c2c2a17ef9 (diff) | |
download | chromium_src-972bc39f4a28fa510bfb8c61f94e2e9b1897790f.zip chromium_src-972bc39f4a28fa510bfb8c61f94e2e9b1897790f.tar.gz chromium_src-972bc39f4a28fa510bfb8c61f94e2e9b1897790f.tar.bz2 |
Fixups in components/ for scoped_refptr operator T* removal.
BUG=110610
TBR=rpaquay@chromium.org
Review URL: https://codereview.chromium.org/536623003
Cr-Commit-Position: refs/heads/master@{#293255}
Diffstat (limited to 'components/pdf')
-rw-r--r-- | components/pdf/renderer/ppb_pdf_impl.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/pdf/renderer/ppb_pdf_impl.cc b/components/pdf/renderer/ppb_pdf_impl.cc index abfc7f8..3667c47 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()); } |