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

Unified Diff: chrome/browser/chromeos/power/peripheral_battery_observer.cc

Issue 1220963005: Update base::StartsWith calls to new form (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@starts_with
Patch Set: Created 5 years, 6 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/chromeos/power/peripheral_battery_observer.cc
diff --git a/chrome/browser/chromeos/power/peripheral_battery_observer.cc b/chrome/browser/chromeos/power/peripheral_battery_observer.cc
index 8549cc00dbb41a82a7bab5169cc410ec99c9b167..32438ae26fcfbbfa163490da6c9e2f11a2e2a007 100644
--- a/chrome/browser/chromeos/power/peripheral_battery_observer.cc
+++ b/chrome/browser/chromeos/power/peripheral_battery_observer.cc
@@ -49,8 +49,10 @@ const char kHIDBatteryPathPrefix[] = "/sys/class/power_supply/hid-";
const char kHIDBatteryPathSuffix[] = "-battery";
bool IsBluetoothHIDBattery(const std::string& path) {
- return base::StartsWithASCII(path, kHIDBatteryPathPrefix, false) &&
- base::EndsWith(path, kHIDBatteryPathSuffix, false);
+ return base::StartsWith(path, kHIDBatteryPathPrefix,
+ base::CompareCase::INSENSITIVE_ASCII) &&
+ base::EndsWith(path, kHIDBatteryPathSuffix,
+ base::CompareCase::INSENSITIVE_ASCII);
}
std::string ExtractBluetoothAddress(const std::string& path) {

Powered by Google App Engine
This is Rietveld 408576698