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

Unified Diff: components/devtools_http_handler/devtools_http_handler.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 | « chrome/renderer/content_settings_observer.cc ('k') | components/dom_distiller/core/page_features.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/devtools_http_handler/devtools_http_handler.cc
diff --git a/components/devtools_http_handler/devtools_http_handler.cc b/components/devtools_http_handler/devtools_http_handler.cc
index 1255dbf1d7ddede814d3a2752b1199e350c60a08..16e7d04cf2955170b3204573dd57045c2483f56f 100644
--- a/components/devtools_http_handler/devtools_http_handler.cc
+++ b/components/devtools_http_handler/devtools_http_handler.cc
@@ -359,17 +359,17 @@ static std::string PathWithoutParams(const std::string& path) {
}
static std::string GetMimeType(const std::string& filename) {
- 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, ".json", false)) {
+ } else if (base::EndsWith(filename, ".json", false)) {
return "application/json";
}
LOG(ERROR) << "GetMimeType doesn't know mime type for: "
« no previous file with comments | « chrome/renderer/content_settings_observer.cc ('k') | components/dom_distiller/core/page_features.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698