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

Unified Diff: remoting/host/it2me/it2me_confirmation_dialog_proxy.cc

Issue 1549493004: Use std::move() instead of .Pass() in remoting/host (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move_not_pass
Patch Set: include <utility> 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
« no previous file with comments | « remoting/host/ipc_util_win.cc ('k') | remoting/host/it2me/it2me_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/it2me/it2me_confirmation_dialog_proxy.cc
diff --git a/remoting/host/it2me/it2me_confirmation_dialog_proxy.cc b/remoting/host/it2me/it2me_confirmation_dialog_proxy.cc
index 00efc95ec9cb01cc1053dba3dc177b2847d4c0fe..de00e67718ee21aa686a08f36cc9c172b44b6ef1 100644
--- a/remoting/host/it2me/it2me_confirmation_dialog_proxy.cc
+++ b/remoting/host/it2me/it2me_confirmation_dialog_proxy.cc
@@ -4,6 +4,8 @@
#include "remoting/host/it2me/it2me_confirmation_dialog_proxy.h"
+#include <utility>
+
#include "base/bind.h"
#include "base/callback_helpers.h"
#include "base/location.h"
@@ -51,7 +53,7 @@ It2MeConfirmationDialogProxy::Core::Core(
: ui_task_runner_(ui_task_runner),
caller_task_runner_(caller_task_runner),
parent_(parent),
- dialog_(dialog.Pass()) {
+ dialog_(std::move(dialog)) {
}
It2MeConfirmationDialogProxy::Core::~Core() {
@@ -78,7 +80,7 @@ It2MeConfirmationDialogProxy::It2MeConfirmationDialogProxy(
scoped_ptr<It2MeConfirmationDialog> dialog)
: weak_factory_(this) {
core_.reset(new Core(ui_task_runner, base::ThreadTaskRunnerHandle::Get(),
- weak_factory_.GetWeakPtr(), dialog.Pass()));
+ weak_factory_.GetWeakPtr(), std::move(dialog)));
}
It2MeConfirmationDialogProxy::~It2MeConfirmationDialogProxy() {
« no previous file with comments | « remoting/host/ipc_util_win.cc ('k') | remoting/host/it2me/it2me_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698