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

Unified Diff: snapshot/test/test_thread_snapshot.h

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_process_snapshot.h ('k') | test/win/win_child_process.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: snapshot/test/test_thread_snapshot.h
diff --git a/snapshot/test/test_thread_snapshot.h b/snapshot/test/test_thread_snapshot.h
index 9b00d32ff300cb1aba22562a093fc76465dd2762..49a10c652effe6de0ab9208a6b8f8a790f433afd 100644
--- a/snapshot/test/test_thread_snapshot.h
+++ b/snapshot/test/test_thread_snapshot.h
@@ -24,6 +24,7 @@
#include "snapshot/cpu_context.h"
#include "snapshot/memory_snapshot.h"
#include "snapshot/thread_snapshot.h"
+#include "util/stdlib/move.h"
#include "util/stdlib/pointer_container.h"
namespace crashpad {
@@ -55,7 +56,9 @@ class TestThreadSnapshot final : public ThreadSnapshot {
//!
//! \param[in] stack The memory region that Stack() will return. The
//! TestThreadSnapshot object takes ownership of \a stack.
- void SetStack(scoped_ptr<MemorySnapshot> stack) { stack_ = stack.Pass(); }
+ void SetStack(scoped_ptr<MemorySnapshot> stack) {
+ stack_ = crashpad::move(stack);
+ }
void SetThreadID(uint64_t thread_id) { thread_id_ = thread_id; }
void SetSuspendCount(int suspend_count) { suspend_count_ = suspend_count; }
« no previous file with comments | « snapshot/test/test_process_snapshot.h ('k') | test/win/win_child_process.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698