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

Unified Diff: pdf/pdfium/pdfium_engine.cc

Issue 2233753002: pdf: Use stl utilities from the base namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 4 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pdf/pdfium/pdfium_engine.cc
diff --git a/pdf/pdfium/pdfium_engine.cc b/pdf/pdfium/pdfium_engine.cc
index 29f9a7ac15df850e9a7015e332bd1790b1a3a961..6859b01a6a3d36b1cc89848d53c87b6a62df9700 100644
--- a/pdf/pdfium/pdfium_engine.cc
+++ b/pdf/pdfium/pdfium_engine.cc
@@ -452,7 +452,7 @@ pp::VarDictionary TraverseBookmarks(FPDF_DOCUMENT doc,
FPDFBookmark_GetFirstChild(doc, bookmark);
child_bookmark;
child_bookmark = FPDFBookmark_GetNextSibling(doc, child_bookmark)) {
- if (ContainsKey(seen_bookmarks, child_bookmark))
+ if (base::ContainsKey(seen_bookmarks, child_bookmark))
break;
seen_bookmarks.insert(child_bookmark);
@@ -647,7 +647,7 @@ PDFiumEngine::~PDFiumEngine() {
}
FPDFAvail_Destroy(fpdf_availability_);
- STLDeleteElements(&pages_);
+ base::STLDeleteElements(&pages_);
}
#ifdef PDF_USE_XFA
@@ -2671,7 +2671,7 @@ void PDFiumEngine::CalculateVisiblePages() {
}
bool PDFiumEngine::IsPageVisible(int index) const {
- return ContainsValue(visible_pages_, index);
+ return base::ContainsValue(visible_pages_, index);
}
bool PDFiumEngine::CheckPageAvailable(int index, std::vector<int>* pending) {
@@ -2683,7 +2683,7 @@ bool PDFiumEngine::CheckPageAvailable(int index, std::vector<int>* pending) {
return true;
if (!FPDFAvail_IsPageAvail(fpdf_availability_, index, &download_hints_)) {
- if (!ContainsValue(*pending, index))
+ if (!base::ContainsValue(*pending, index))
pending->push_back(index);
return false;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698