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

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

Issue 1233453011: Revert of 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 55282b8f0f7932fbee2799c73d1aec047c7a4b98..c611501966045a6f48aa3dce0d0b3d82e2a7dbf3 100644
--- a/chrome/browser/search/iframe_source.cc
+++ b/chrome/browser/search/iframe_source.cc
@@ -25,13 +25,13 @@
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", base::CompareCase::INSENSITIVE_ASCII))
+ if (base::EndsWith(path, ".js", false))
return "application/javascript";
- if (base::EndsWith(path, ".png", base::CompareCase::INSENSITIVE_ASCII))
+ if (base::EndsWith(path, ".png", false))
return "image/png";
- if (base::EndsWith(path, ".css", base::CompareCase::INSENSITIVE_ASCII))
+ if (base::EndsWith(path, ".css", false))
return "text/css";
- if (base::EndsWith(path, ".html", base::CompareCase::INSENSITIVE_ASCII))
+ if (base::EndsWith(path, ".html", false))
return "text/html";
return std::string();
}

Powered by Google App Engine
This is Rietveld 408576698