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

Unified Diff: chrome/browser/ui/webui/devtools_ui.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
Index: chrome/browser/ui/webui/devtools_ui.cc
diff --git a/chrome/browser/ui/webui/devtools_ui.cc b/chrome/browser/ui/webui/devtools_ui.cc
index e80b772f8d5a85e106ce71acece3d94e2e8b0831..7a87620aa8f74084fc60130016e366ccc9b99292 100644
--- a/chrome/browser/ui/webui/devtools_ui.cc
+++ b/chrome/browser/ui/webui/devtools_ui.cc
@@ -49,19 +49,19 @@ const char kFallbackFrontendURL[] =
std::string GetMimeTypeForPath(const std::string& path) {
std::string filename = PathWithoutParams(path);
- if (EndsWith(filename, ".html", false)) {
+ if (base::EndsWith(filename, ".html", false)) {
return "text/html";
- } else if (EndsWith(filename, ".css", false)) {
+ } else if (base::EndsWith(filename, ".css", false)) {
return "text/css";
- } else if (EndsWith(filename, ".js", false)) {
+ } else if (base::EndsWith(filename, ".js", false)) {
return "application/javascript";
- } else if (EndsWith(filename, ".png", false)) {
+ } else if (base::EndsWith(filename, ".png", false)) {
return "image/png";
- } else if (EndsWith(filename, ".gif", false)) {
+ } else if (base::EndsWith(filename, ".gif", false)) {
return "image/gif";
- } else if (EndsWith(filename, ".svg", false)) {
+ } else if (base::EndsWith(filename, ".svg", false)) {
return "image/svg+xml";
- } else if (EndsWith(filename, ".manifest", false)) {
+ } else if (base::EndsWith(filename, ".manifest", false)) {
return "text/cache-manifest";
}
return "text/html";
« no previous file with comments | « chrome/browser/ui/libgtk2ui/select_file_dialog_impl_gtk2.cc ('k') | chrome/browser/ui/webui/print_preview/print_preview_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698