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

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

Issue 1279123004: Replace ToLower calls to the new format (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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 1ef701e20408377ca7623ee0478eb293265861f0..7867495c6d9c562131fcb5ae8e1271ec1218abb6 100644
--- a/chrome/browser/chromeos/power/peripheral_battery_observer.cc
+++ b/chrome/browser/chromeos/power/peripheral_battery_observer.cc
@@ -61,8 +61,8 @@ std::string ExtractBluetoothAddress(const std::string& path) {
int key_len = path.size() - header_size - end_size;
if (key_len <= 0)
return std::string();
- std::string reverse_address = path.substr(header_size, key_len);
- base::StringToLowerASCII(&reverse_address);
+ std::string reverse_address =
+ base::ToLowerASCII(path.substr(header_size, key_len));
std::vector<std::string> result = base::SplitString(
reverse_address, ":", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL);
std::reverse(result.begin(), result.end());
@@ -181,8 +181,7 @@ void PeripheralBatteryObserver::InitializeOnBluetoothReady(
void PeripheralBatteryObserver::RemoveBattery(const std::string& address) {
DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
- std::string address_lowercase = address;
- base::StringToLowerASCII(&address_lowercase);
+ std::string address_lowercase = base::ToLowerASCII(address);
std::map<std::string, BatteryInfo>::iterator it =
batteries_.find(address_lowercase);
if (it != batteries_.end()) {

Powered by Google App Engine
This is Rietveld 408576698