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

Unified Diff: content/browser/webui/web_ui_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 | « content/browser/web_contents/web_contents_impl.cc ('k') | content/common/set_process_title.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/webui/web_ui_data_source_impl.cc
diff --git a/content/browser/webui/web_ui_data_source_impl.cc b/content/browser/webui/web_ui_data_source_impl.cc
index f3a5777d3da932922f7b58b8d014424d59a01266..08ab2ad5ded34e5fa6382e252420570ff2bbbf51 100644
--- a/content/browser/webui/web_ui_data_source_impl.cc
+++ b/content/browser/webui/web_ui_data_source_impl.cc
@@ -190,16 +190,16 @@ std::string WebUIDataSourceImpl::GetSource() const {
}
std::string WebUIDataSourceImpl::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, ".svg", false))
+ if (base::EndsWith(path, ".svg", false))
return "image/svg+xml";
return "text/html";
« no previous file with comments | « content/browser/web_contents/web_contents_impl.cc ('k') | content/common/set_process_title.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698