| Index: base/process/process_win.cc
|
| diff --git a/base/process/process_win.cc b/base/process/process_win.cc
|
| index 818864fa528dbab283e975983683ed337c3753e1..e7f35b3f4e29d28aa16f532d97c74a2488ec6aa1 100644
|
| --- a/base/process/process_win.cc
|
| +++ b/base/process/process_win.cc
|
| @@ -25,21 +25,20 @@ Process::Process(ProcessHandle handle)
|
| CHECK_NE(handle, ::GetCurrentProcess());
|
| }
|
|
|
| -Process::Process(RValue other)
|
| - : is_current_process_(other.object->is_current_process_),
|
| - process_(other.object->process_.Take()) {
|
| - other.object->Close();
|
| +Process::Process(Process&& other)
|
| + : is_current_process_(other.is_current_process_),
|
| + process_(other.process_.Take()) {
|
| + other.Close();
|
| }
|
|
|
| Process::~Process() {
|
| }
|
|
|
| -Process& Process::operator=(RValue other) {
|
| - if (this != other.object) {
|
| - process_.Set(other.object->process_.Take());
|
| - is_current_process_ = other.object->is_current_process_;
|
| - other.object->Close();
|
| - }
|
| +Process& Process::operator=(Process&& other) {
|
| + DCHECK_NE(this, &other);
|
| + process_.Set(other.process_.Take());
|
| + is_current_process_ = other.is_current_process_;
|
| + other.Close();
|
| return *this;
|
| }
|
|
|
|
|