Index: base/process/process_posix.cc |
diff --git a/base/process/process_posix.cc b/base/process/process_posix.cc |
index 5d7007c9c9e0bc29475799d159b8a0c2f1f073de..6558505518750a82e1d76badffacf89a6aba1ef2 100644 |
--- a/base/process/process_posix.cc |
+++ b/base/process/process_posix.cc |
@@ -14,7 +14,6 @@ |
namespace base { |
Process::Process(ProcessHandle handle) : process_(handle) { |
- CHECK_NE(handle, GetCurrentProcessHandle()); |
} |
Process::Process(RValue other) |
@@ -32,9 +31,7 @@ Process& Process::operator=(RValue other) { |
// static |
Process Process::Current() { |
- Process process; |
- process.process_ = GetCurrentProcessHandle(); |
- return process.Pass(); |
+ return Process(GetCurrentProcessHandle()); |
} |
// static |