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

Unified Diff: chrome/browser/search/iframe_source.cc

Issue 1233043003: Remove some legacy versions of StartsWith and EndsWith. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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 c611501966045a6f48aa3dce0d0b3d82e2a7dbf3..55282b8f0f7932fbee2799c73d1aec047c7a4b98 100644
--- a/chrome/browser/search/iframe_source.cc
+++ b/chrome/browser/search/iframe_source.cc
@@ -25,13 +25,13 @@ 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 (base::EndsWith(path, ".js", false))
+ if (base::EndsWith(path, ".js", base::CompareCase::INSENSITIVE_ASCII))
return "application/javascript";
- if (base::EndsWith(path, ".png", false))
+ if (base::EndsWith(path, ".png", base::CompareCase::INSENSITIVE_ASCII))
return "image/png";
- if (base::EndsWith(path, ".css", false))
+ if (base::EndsWith(path, ".css", base::CompareCase::INSENSITIVE_ASCII))
return "text/css";
- if (base::EndsWith(path, ".html", false))
+ if (base::EndsWith(path, ".html", base::CompareCase::INSENSITIVE_ASCII))
return "text/html";
return std::string();
}

Powered by Google App Engine
This is Rietveld 408576698