Index: pdf/document_loader.cc |
diff --git a/pdf/document_loader.cc b/pdf/document_loader.cc |
index 28a6ee4ebd74dfc643fd49759ddde124f7847d0b..f696656058eb889c7fe73240892f1f07d0c557a7 100644 |
--- a/pdf/document_loader.cc |
+++ b/pdf/document_loader.cc |
@@ -68,15 +68,12 @@ |
} |
bool IsValidContentType(const std::string& type) { |
- return (base::EndsWith(type, "/pdf", base::CompareCase::INSENSITIVE_ASCII) || |
- base::EndsWith(type, ".pdf", base::CompareCase::INSENSITIVE_ASCII) || |
- base::EndsWith(type, "/x-pdf", |
- base::CompareCase::INSENSITIVE_ASCII) || |
- base::EndsWith(type, "/*", base::CompareCase::INSENSITIVE_ASCII) || |
- base::EndsWith(type, "/acrobat", |
- base::CompareCase::INSENSITIVE_ASCII) || |
- base::EndsWith(type, "/unknown", |
- base::CompareCase::INSENSITIVE_ASCII)); |
+ 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 |