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

Side by Side Diff: device/bluetooth/bluez/bluetooth_advertisement_bluez.cc

Issue 2423793002: Remove usage of FOR_EACH_OBSERVER macro in device/ (Closed)
Patch Set: rebase Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "device/bluetooth/bluez/bluetooth_advertisement_bluez.h" 5 #include "device/bluetooth/bluez/bluetooth_advertisement_bluez.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <string> 8 #include <string>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 ->GetBluetoothLEAdvertisingManagerClient() 123 ->GetBluetoothLEAdvertisingManagerClient()
124 ->UnregisterAdvertisement( 124 ->UnregisterAdvertisement(
125 adapter_->object_path(), provider_->object_path(), success_callback, 125 adapter_->object_path(), provider_->object_path(), success_callback,
126 base::Bind(&UnregisterErrorCallbackConnector, error_callback)); 126 base::Bind(&UnregisterErrorCallbackConnector, error_callback));
127 provider_.reset(); 127 provider_.reset();
128 } 128 }
129 129
130 void BluetoothAdvertisementBlueZ::Released() { 130 void BluetoothAdvertisementBlueZ::Released() {
131 LOG(WARNING) << "Advertisement released."; 131 LOG(WARNING) << "Advertisement released.";
132 provider_.reset(); 132 provider_.reset();
133 FOR_EACH_OBSERVER(BluetoothAdvertisement::Observer, observers_, 133 for (auto& observer : observers_)
134 AdvertisementReleased(this)); 134 observer.AdvertisementReleased(this);
135 } 135 }
136 136
137 } // namespace bluez 137 } // namespace bluez
OLDNEW
« no previous file with comments | « device/bluetooth/bluez/bluetooth_adapter_bluez.cc ('k') | device/bluetooth/dbus/bluetooth_adapter_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698