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

Unified Diff: components/pairing/bluetooth_controller_pairing_controller.cc

Issue 626633002: Convert a couple loops to range based iterators. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Code review fix Created 6 years, 2 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 | « no previous file | components/pairing/fake_controller_pairing_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/pairing/bluetooth_controller_pairing_controller.cc
diff --git a/components/pairing/bluetooth_controller_pairing_controller.cc b/components/pairing/bluetooth_controller_pairing_controller.cc
index 4c4d8557ca1a7e114c08e0d6eb0c466da5b2916d..bf5e7fdd611d96e2a8cdad5414252b12f93253be 100644
--- a/components/pairing/bluetooth_controller_pairing_controller.cc
+++ b/components/pairing/bluetooth_controller_pairing_controller.cc
@@ -137,11 +137,8 @@ void BluetoothControllerPairingController::OnStartDiscoverySession(
discovery_session_ = discovery_session.Pass();
ChangeStage(STAGE_DEVICES_DISCOVERY);
- device::BluetoothAdapter::DeviceList device_list = adapter_->GetDevices();
- for (device::BluetoothAdapter::DeviceList::iterator ix = device_list.begin();
- ix != device_list.end(); ++ix) {
- DeviceFound(*ix);
- }
+ for (const auto& device : adapter_->GetDevices())
+ DeviceFound(device);
}
void BluetoothControllerPairingController::OnConnect() {
« no previous file with comments | « no previous file | components/pairing/fake_controller_pairing_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698