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

Unified Diff: components/pairing/shark_connection_listener.cc

Issue 1552023002: Convert Pass()→std::move() in //components (CrOS edition) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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: components/pairing/shark_connection_listener.cc
diff --git a/components/pairing/shark_connection_listener.cc b/components/pairing/shark_connection_listener.cc
index a6bc655f69512d18c444d60f6a3629b0f84bce1a..961d9623750dca32050147a671ef02f9bad4e65b 100644
--- a/components/pairing/shark_connection_listener.cc
+++ b/components/pairing/shark_connection_listener.cc
@@ -4,6 +4,8 @@
#include "components/pairing/shark_connection_listener.h"
+#include <utility>
+
#include "base/logging.h"
#include "base/threading/thread_restrictions.h"
#include "components/pairing/bluetooth_host_pairing_controller.h"
@@ -25,7 +27,7 @@ SharkConnectionListener::~SharkConnectionListener() {
void SharkConnectionListener::PairingStageChanged(Stage new_stage) {
if (new_stage == HostPairingController::STAGE_WAITING_FOR_CODE_CONFIRMATION) {
controller_->RemoveObserver(this);
- callback_.Run(controller_.Pass());
+ callback_.Run(std::move(controller_));
callback_.Reset();
}
}
« no previous file with comments | « components/pairing/bluetooth_controller_pairing_controller.cc ('k') | components/policy/core/common/proxy_policy_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698