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

Unified Diff: test/win/win_child_process.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 | « snapshot/test/test_thread_snapshot.h ('k') | tools/crashpad_database_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/win/win_child_process.cc
diff --git a/test/win/win_child_process.cc b/test/win/win_child_process.cc
index 6b7a1a07d1b8ec620aac841ccb19ccd89046d53b..1f11bc781c472f63033b40a069ef9af7c48f6f8e 100644
--- a/test/win/win_child_process.cc
+++ b/test/win/win_child_process.cc
@@ -23,6 +23,7 @@
#include "base/strings/stringprintf.h"
#include "base/strings/utf_string_conversions.h"
#include "gtest/gtest.h"
+#include "util/stdlib/move.h"
#include "util/stdlib/string_number_conversion.h"
#include "util/string/split_string.h"
#include "util/win/handle.h"
@@ -125,8 +126,8 @@ bool CreateInheritablePipe(ScopedFileHANDLE* read_handle,
if (!write_inheritable && !UnsetHandleInheritance(temp_write.get()))
return false;
- *read_handle = temp_read.Pass();
- *write_handle = temp_write.Pass();
+ *read_handle = crashpad::move(temp_read);
+ *write_handle = crashpad::move(temp_write);
return true;
}
@@ -212,7 +213,7 @@ scoped_ptr<WinChildProcess::Handles> WinChildProcess::Launch() {
return scoped_ptr<Handles>();
}
- return handles_for_parent.Pass();
+ return crashpad::move(handles_for_parent);
}
FileHandle WinChildProcess::ReadPipeHandle() const {
« no previous file with comments | « snapshot/test/test_thread_snapshot.h ('k') | tools/crashpad_database_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698