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

Unified Diff: device/usb/usb_service_impl.cc

Issue 1224553010: Replace base::str[n]casecmp with helper functions. (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
« no previous file with comments | « content/plugin/webplugin_proxy.cc ('k') | extensions/browser/api/web_request/form_data_parser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/usb/usb_service_impl.cc
diff --git a/device/usb/usb_service_impl.cc b/device/usb/usb_service_impl.cc
index ea7ad7f498108d213619935c2de2ddbb107b6fa1..2261ad6930bdd1b246daf7e3abc957a9994131a9 100644
--- a/device/usb/usb_service_impl.cc
+++ b/device/usb/usb_service_impl.cc
@@ -127,10 +127,9 @@ bool IsWinUsbInterface(const std::string& device_path) {
}
USB_LOG(DEBUG) << "Driver for " << device_path << " is " << buffer << ".";
- if (base::strncasecmp("WinUSB", (const char*)&buffer[0], sizeof "WinUSB") ==
- 0) {
+ if (base::StartsWith(reinterpret_cast<const char*>(buffer), "WinUSB",
+ base::CompareCase::INSENSITIVE_ASCII))
return true;
- }
return false;
}
« no previous file with comments | « content/plugin/webplugin_proxy.cc ('k') | extensions/browser/api/web_request/form_data_parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698