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

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

Issue 1172183002: Move StartsWith[ASCII] to base namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@string_util3
Patch Set: merger 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 a36a5edc7353e5d36e2fbfe01f8847b84081a238..fc17ebf2291755d259931490a8978a6b53ff5cae 100644
--- a/chrome/browser/chromeos/power/peripheral_battery_observer.cc
+++ b/chrome/browser/chromeos/power/peripheral_battery_observer.cc
@@ -49,8 +49,8 @@ const char kHIDBatteryPathPrefix[] = "/sys/class/power_supply/hid-";
const char kHIDBatteryPathSuffix[] = "-battery";
bool IsBluetoothHIDBattery(const std::string& path) {
- return StartsWithASCII(path, kHIDBatteryPathPrefix, false) &&
- EndsWith(path, kHIDBatteryPathSuffix, false);
+ return base::StartsWithASCII(path, kHIDBatteryPathPrefix, false) &&
+ EndsWith(path, kHIDBatteryPathSuffix, false);
}
std::string ExtractBluetoothAddress(const std::string& path) {

Powered by Google App Engine
This is Rietveld 408576698