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

Unified Diff: pdf/pdfium/pdfium_page.cc

Issue 1881013004: Convert pdf/ to use std::unique_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 | « pdf/pdfium/pdfium_engine.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pdf/pdfium/pdfium_page.cc
diff --git a/pdf/pdfium/pdfium_page.cc b/pdf/pdfium/pdfium_page.cc
index 41bcd9c76ddadfd12da19bf0628c3278de5f55ea..af64660a2a8513cc98afc6d42e98fc4f9adf1d9c 100644
--- a/pdf/pdfium/pdfium_page.cc
+++ b/pdf/pdfium/pdfium_page.cc
@@ -8,6 +8,7 @@
#include <stddef.h>
#include <algorithm>
+#include <memory>
#include "base/logging.h"
#include "base/strings/string_number_conversions.h"
@@ -204,7 +205,7 @@ base::Value* PDFiumPage::GetAccessibleContentAsValue(int rotation) {
node->SetDouble(kPageWidth, width);
node->SetDouble(kPageHeight, height);
- scoped_ptr<base::ListValue> text(new base::ListValue());
+ std::unique_ptr<base::ListValue> text(new base::ListValue());
int chars_count = FPDFText_CountChars(text_page);
pp::Rect line_rect;
« no previous file with comments | « pdf/pdfium/pdfium_engine.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698