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

Unified Diff: client/crashpad_client_mac.cc

Issue 1483073004: Replace use of .Pass() with crashpad::move(). (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: pass: . Created 5 years, 1 month 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 | « client/crash_report_database_win.cc ('k') | client/settings.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/crashpad_client_mac.cc
diff --git a/client/crashpad_client_mac.cc b/client/crashpad_client_mac.cc
index 480828be78c115d6af0e1cf48690a2c33e8dadf5..4a3673fb70f2a40ffe3026505f7a3f7c2939dc94 100644
--- a/client/crashpad_client_mac.cc
+++ b/client/crashpad_client_mac.cc
@@ -32,6 +32,7 @@
#include "util/mach/notify_server.h"
#include "util/misc/clock.h"
#include "util/misc/implicit_cast.h"
+#include "util/stdlib/move.h"
#include "util/posix/close_multiple.h"
namespace crashpad {
@@ -158,7 +159,7 @@ class HandlerStarter final : public NotifyServer::DefaultInterface {
url,
annotations,
arguments,
- receive_right.Pass(),
+ crashpad::move(receive_right),
handler_restarter.get(),
false)) {
return base::mac::ScopedMachSendRight();
@@ -538,7 +539,7 @@ bool CrashpadClient::StartHandler(
return false;
}
- SetHandlerMachPort(exception_port.Pass());
+ SetHandlerMachPort(crashpad::move(exception_port));
return true;
}
@@ -548,14 +549,14 @@ bool CrashpadClient::SetHandlerMachService(const std::string& service_name) {
return false;
}
- SetHandlerMachPort(exception_port.Pass());
+ SetHandlerMachPort(crashpad::move(exception_port));
return true;
}
void CrashpadClient::SetHandlerMachPort(
base::mac::ScopedMachSendRight exception_port) {
DCHECK(exception_port.is_valid());
- exception_port_ = exception_port.Pass();
+ exception_port_ = crashpad::move(exception_port);
}
bool CrashpadClient::UseHandler() {
« no previous file with comments | « client/crash_report_database_win.cc ('k') | client/settings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698