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

Unified Diff: ios/web/webui/web_ui_ios_data_source_impl.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 | « 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 6180836331ff1d29b58742b5845179ecd01462ea..ee0ed423c50983ba8d7853f7f084f13dbc6fa007 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 (EndsWith(path, ".js", false))
+ if (base::EndsWith(path, ".js", false))
return "application/javascript";
- if (EndsWith(path, ".json", false))
+ if (base::EndsWith(path, ".json", false))
return "application/json";
- if (EndsWith(path, ".pdf", false))
+ if (base::EndsWith(path, ".pdf", false))
return "application/pdf";
- if (EndsWith(path, ".css", false))
+ if (base::EndsWith(path, ".css", false))
return "text/css";
- if (EndsWith(path, ".svg", false))
+ if (base::EndsWith(path, ".svg", false))
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