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

Unified Diff: content/common/service_worker/service_worker_types.h

Issue 1224553010: Replace base::str[n]casecmp with helper functions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments 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: content/common/service_worker/service_worker_types.h
diff --git a/content/common/service_worker/service_worker_types.h b/content/common/service_worker/service_worker_types.h
index 7f25293c98247d0862c07a1d5330cf8954e4812d..7d7f1a30840d9037a09a526e362a33ddf3bf379c 100644
--- a/content/common/service_worker/service_worker_types.h
+++ b/content/common/service_worker/service_worker_types.h
@@ -101,7 +101,7 @@ enum ServiceWorkerFetchEventResult {
struct ServiceWorkerCaseInsensitiveCompare {
bool operator()(const std::string& lhs, const std::string& rhs) const {
- return base::strcasecmp(lhs.c_str(), rhs.c_str()) < 0;
+ return base::CompareCaseInsensitiveASCII(lhs, rhs) < 0;
}
};

Powered by Google App Engine
This is Rietveld 408576698