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

Unified Diff: device/bluetooth/bluetooth_discovery_session.cc

Issue 2729333002: Replace unique_ptr.reset(other_unique_ptr.release() with std::move() in device/bluetooth/ (Closed)
Patch Set: Created 3 years, 10 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 | device/bluetooth/bluez/bluetooth_adapter_bluez.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/bluetooth_discovery_session.cc
diff --git a/device/bluetooth/bluetooth_discovery_session.cc b/device/bluetooth/bluetooth_discovery_session.cc
index 8ae5b10626ff418b5ee393e8750f5b18fa42cda6..faf158cd152dd33dba3c0a7e781103707353b2da 100644
--- a/device/bluetooth/bluetooth_discovery_session.cc
+++ b/device/bluetooth/bluetooth_discovery_session.cc
@@ -99,7 +99,7 @@ void BluetoothDiscoverySession::SetDiscoveryFilter(
std::unique_ptr<BluetoothDiscoveryFilter> discovery_filter,
const base::Closure& callback,
const ErrorCallback& error_callback) {
- discovery_filter_.reset(discovery_filter.release());
+ discovery_filter_ = std::move(discovery_filter);
// BluetoothDiscoverySession::SetDiscoveryFilter is only used from a private
// extension API, so we don't bother histogramming its failures.
adapter_->SetDiscoveryFilter(
« no previous file with comments | « no previous file | device/bluetooth/bluez/bluetooth_adapter_bluez.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698