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

Unified Diff: chrome/browser/search/iframe_source.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/search/iframe_source.cc
diff --git a/chrome/browser/search/iframe_source.cc b/chrome/browser/search/iframe_source.cc
index e3f0b4e9c3d5badcb066c776b83b3ae4b3a63b60..2a86a459bf14168597cbbe2b46a5acb6254e26d5 100644
--- a/chrome/browser/search/iframe_source.cc
+++ b/chrome/browser/search/iframe_source.cc
@@ -25,15 +25,15 @@ IframeSource::~IframeSource() {
std::string IframeSource::GetMimeType(
const std::string& path_and_query) const {
std::string path(GURL("chrome-search://host/" + path_and_query).path());
- if (EndsWith(path, ".js", false))
+ if (base::EndsWith(path, ".js", false))
return "application/javascript";
- if (EndsWith(path, ".png", false))
+ if (base::EndsWith(path, ".png", false))
return "image/png";
- if (EndsWith(path, ".css", false))
+ if (base::EndsWith(path, ".css", false))
return "text/css";
- if (EndsWith(path, ".html", false))
+ if (base::EndsWith(path, ".html", false))
return "text/html";
- return "";
+ return std::string();
}
bool IframeSource::ShouldServiceRequest(

Powered by Google App Engine
This is Rietveld 408576698