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

Unified Diff: remoting/host/win/worker_process_launcher_unittest.cc

Issue 92173002: Merge 237541 "Revert of https://codereview.chromium.org/71013004/" (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1721/src/
Patch Set: Created 7 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
Index: remoting/host/win/worker_process_launcher_unittest.cc
===================================================================
--- remoting/host/win/worker_process_launcher_unittest.cc (revision 237598)
+++ remoting/host/win/worker_process_launcher_unittest.cc (working copy)
@@ -343,7 +343,7 @@
STARTUPINFOW startup_info = { 0 };
startup_info.cb = sizeof(startup_info);
- PROCESS_INFORMATION temp_process_info = {};
+ base::win::ScopedProcessInformation process_information;
ASSERT_TRUE(CreateProcess(NULL,
notepad,
NULL, // default process attibutes
@@ -353,8 +353,7 @@
NULL, // no environment
NULL, // default current directory
&startup_info,
- &temp_process_info));
- base::win::ScopedProcessInformation process_information(temp_process_info);
+ process_information.Receive()));
worker_process_.Set(process_information.TakeProcessHandle());
ASSERT_TRUE(worker_process_.IsValid());
@@ -369,15 +368,14 @@
this,
task_runner_));
- HANDLE temp_handle;
+ ScopedHandle copy;
ASSERT_TRUE(DuplicateHandle(GetCurrentProcess(),
worker_process_,
GetCurrentProcess(),
- &temp_handle,
+ copy.Receive(),
0,
FALSE,
DUPLICATE_SAME_ACCESS));
- ScopedHandle copy(temp_handle);
event_handler_->OnProcessLaunched(copy.Pass());
}
« no previous file with comments | « remoting/host/win/unprivileged_process_delegate.cc ('k') | remoting/host/win/wts_session_process_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698