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

Unified Diff: ios/web/webui/web_ui_ios_data_source_impl.cc

Issue 1233043003: Remove some legacy versions of StartsWith and EndsWith. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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 | « gpu/command_buffer/service/program_manager.cc ('k') | media/filters/chunk_demuxer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/webui/web_ui_ios_data_source_impl.cc
diff --git a/ios/web/webui/web_ui_ios_data_source_impl.cc b/ios/web/webui/web_ui_ios_data_source_impl.cc
index ee0ed423c50983ba8d7853f7f084f13dbc6fa007..e20b66015500f7e8ce62960fa18c702b1a47321e 100644
--- a/ios/web/webui/web_ui_ios_data_source_impl.cc
+++ b/ios/web/webui/web_ui_ios_data_source_impl.cc
@@ -109,19 +109,19 @@ std::string WebUIIOSDataSourceImpl::GetSource() const {
}
std::string WebUIIOSDataSourceImpl::GetMimeType(const std::string& path) const {
- if (base::EndsWith(path, ".js", false))
+ if (base::EndsWith(path, ".js", base::CompareCase::INSENSITIVE_ASCII))
return "application/javascript";
- if (base::EndsWith(path, ".json", false))
+ if (base::EndsWith(path, ".json", base::CompareCase::INSENSITIVE_ASCII))
return "application/json";
- if (base::EndsWith(path, ".pdf", false))
+ if (base::EndsWith(path, ".pdf", base::CompareCase::INSENSITIVE_ASCII))
return "application/pdf";
- if (base::EndsWith(path, ".css", false))
+ if (base::EndsWith(path, ".css", base::CompareCase::INSENSITIVE_ASCII))
return "text/css";
- if (base::EndsWith(path, ".svg", false))
+ if (base::EndsWith(path, ".svg", base::CompareCase::INSENSITIVE_ASCII))
return "image/svg+xml";
return "text/html";
« no previous file with comments | « gpu/command_buffer/service/program_manager.cc ('k') | media/filters/chunk_demuxer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698