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

Unified Diff: pdf/pdfium/pdfium_page.cc

Issue 1282363003: Convert remaining StringToLowerASCII to ToLowerASCII (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 | « pdf/document_loader.cc ('k') | ppapi/proxy/file_chooser_resource.cc » ('j') | 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 a7912a6e344bf60ebe8f3382be9f9620444d0cec..79410c46987c0e907459cb39ab7452415efbf1db 100644
--- a/pdf/pdfium/pdfium_page.cc
+++ b/pdf/pdfium/pdfium_page.cc
@@ -204,8 +204,8 @@ base::Value* PDFiumPage::GetTextBoxAsValue(double page_height,
DCHECK(targets[i].url[targets[i].url.size() - 1] != '\0');
// PDFium may change the case of generated links.
- std::string lowerCaseURL = base::StringToLowerASCII(targets[i].url);
- std::string lowerCaseText = base::StringToLowerASCII(text_utf8);
+ std::string lowerCaseURL = base::ToLowerASCII(targets[i].url);
+ std::string lowerCaseText = base::ToLowerASCII(text_utf8);
size_t pos = lowerCaseText.find(lowerCaseURL, start);
size_t length = targets[i].url.size();
if (pos == std::string::npos) {
« no previous file with comments | « pdf/document_loader.cc ('k') | ppapi/proxy/file_chooser_resource.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698