| Index: base/process/process_posix.cc
|
| diff --git a/base/process/process_posix.cc b/base/process/process_posix.cc
|
| index 2320ce793486c6c96af5d16fe5688b54ddbae784..7b2eed784deea54570550663ffd49c872376bdfe 100644
|
| --- a/base/process/process_posix.cc
|
| +++ b/base/process/process_posix.cc
|
| @@ -217,16 +217,14 @@ Process::Process(ProcessHandle handle) : process_(handle) {
|
| Process::~Process() {
|
| }
|
|
|
| -Process::Process(RValue other)
|
| - : process_(other.object->process_) {
|
| - other.object->Close();
|
| +Process::Process(Process&& other) : process_(other.process_) {
|
| + other.Close();
|
| }
|
|
|
| -Process& Process::operator=(RValue other) {
|
| - if (this != other.object) {
|
| - process_ = other.object->process_;
|
| - other.object->Close();
|
| - }
|
| +Process& Process::operator=(Process&& other) {
|
| + DCHECK_NE(this, &other);
|
| + process_ = other.process_;
|
| + other.Close();
|
| return *this;
|
| }
|
|
|
|
|