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

Unified Diff: components/nacl/common/nacl_debug_exception_handler_win.cc

Issue 1752233002: Convert Pass()→std::move() on Windows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 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 | « components/nacl/browser/nacl_process_host.cc ('k') | components/nacl/loader/nacl_helper_win_64.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/nacl/common/nacl_debug_exception_handler_win.cc
diff --git a/components/nacl/common/nacl_debug_exception_handler_win.cc b/components/nacl/common/nacl_debug_exception_handler_win.cc
index 07c6a4a8ef3ffe106b4994d57653a6f8c9c6914a..8209b5c32fd73f332e183a84a472ed34658ba44d 100644
--- a/components/nacl/common/nacl_debug_exception_handler_win.cc
+++ b/components/nacl/common/nacl_debug_exception_handler_win.cc
@@ -4,6 +4,8 @@
#include "components/nacl/common/nacl_debug_exception_handler_win.h"
+#include <utility>
+
#include "base/bind.h"
#include "base/macros.h"
#include "base/threading/platform_thread.h"
@@ -18,7 +20,7 @@ class DebugExceptionHandler : public base::PlatformThread::Delegate {
const std::string& startup_info,
scoped_refptr<base::SingleThreadTaskRunner> task_runner,
const base::Callback<void(bool)>& on_connected)
- : nacl_process_(nacl_process.Pass()),
+ : nacl_process_(std::move(nacl_process)),
startup_info_(startup_info),
task_runner_(task_runner),
on_connected_(on_connected) {}
@@ -71,7 +73,7 @@ void NaClStartDebugExceptionHandlerThread(
// The new PlatformThread will take ownership of the
// DebugExceptionHandler object, which will delete itself on exit.
DebugExceptionHandler* handler = new DebugExceptionHandler(
- nacl_process.Pass(), startup_info, task_runner, on_connected);
+ std::move(nacl_process), startup_info, task_runner, on_connected);
if (!base::PlatformThread::CreateNonJoinable(0, handler)) {
on_connected.Run(false);
delete handler;
« no previous file with comments | « components/nacl/browser/nacl_process_host.cc ('k') | components/nacl/loader/nacl_helper_win_64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698