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

Unified Diff: components/wifi/wifi_service_win.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: components/wifi/wifi_service_win.cc
diff --git a/components/wifi/wifi_service_win.cc b/components/wifi/wifi_service_win.cc
index f20c26ef865c7498d007ccbea682b656235b2d12..2716136b34e51fa4738477a3a072c41be3fb95db 100644
--- a/components/wifi/wifi_service_win.cc
+++ b/components/wifi/wifi_service_win.cc
@@ -1154,7 +1154,8 @@ DWORD WiFiServiceImpl::FindAdapterIndexMapByGUID(
if (error == ERROR_SUCCESS) {
for (int adapter = 0; adapter < interface_info->NumAdapters; ++adapter) {
if (base::EndsWith(
- interface_info->Adapter[adapter].Name, guid_string, false)) {
+ interface_info->Adapter[adapter].Name, guid_string,
+ base::CompareCase::INSENSITIVE_ASCII)) {
*adapter_index_map = interface_info->Adapter[adapter];
break;
}

Powered by Google App Engine
This is Rietveld 408576698