summaryrefslogtreecommitdiffstats
path: root/pdf
diff options
context:
space:
mode:
authorbrettw <brettw@chromium.org>2015-06-12 16:46:41 -0700
committerCommit bot <commit-bot@chromium.org>2015-06-12 23:47:38 +0000
commit17b32adf2de02e5a4cdf1c0195bb3b06c721b2ca (patch)
treee9f2d2a996fcf9f5f77a548f8471b0b5a5ac4142 /pdf
parentb8cce88bf27fe0bb4614c401d7c5bdbf193c587f (diff)
downloadchromium_src-17b32adf2de02e5a4cdf1c0195bb3b06c721b2ca.zip
chromium_src-17b32adf2de02e5a4cdf1c0195bb3b06c721b2ca.tar.gz
chromium_src-17b32adf2de02e5a4cdf1c0195bb3b06c721b2ca.tar.bz2
Move EndsWith to base namespace.
TBR=jschuh@chromium.org Review URL: https://codereview.chromium.org/1182183003 Cr-Commit-Position: refs/heads/master@{#334284}
Diffstat (limited to 'pdf')
-rw-r--r--pdf/document_loader.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/pdf/document_loader.cc b/pdf/document_loader.cc
index 48d8352..f696656 100644
--- a/pdf/document_loader.cc
+++ b/pdf/document_loader.cc
@@ -68,12 +68,12 @@ std::string GetMultiPartBoundary(const std::string& headers) {
}
bool IsValidContentType(const std::string& type) {
- return (EndsWith(type, "/pdf", false) ||
- EndsWith(type, ".pdf", false) ||
- EndsWith(type, "/x-pdf", false) ||
- EndsWith(type, "/*", false) ||
- EndsWith(type, "/acrobat", false) ||
- EndsWith(type, "/unknown", false));
+ return (base::EndsWith(type, "/pdf", false) ||
+ base::EndsWith(type, ".pdf", false) ||
+ base::EndsWith(type, "/x-pdf", false) ||
+ base::EndsWith(type, "/*", false) ||
+ base::EndsWith(type, "/acrobat", false) ||
+ base::EndsWith(type, "/unknown", false));
}
} // namespace