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

Unified Diff: pdf/document_loader.cc

Issue 1182183003: Move EndsWith to base namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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 | « net/websockets/websocket_stream_cookie_test.cc ('k') | remoting/host/it2me/it2me_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pdf/document_loader.cc
diff --git a/pdf/document_loader.cc b/pdf/document_loader.cc
index 48d8352ea0f9535d0ac2fde9e3a565b5726b1a3e..f696656058eb889c7fe73240892f1f07d0c557a7 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
« no previous file with comments | « net/websockets/websocket_stream_cookie_test.cc ('k') | remoting/host/it2me/it2me_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698