Index: win8/test/metro_registration_helper.cc |
diff --git a/win8/test/metro_registration_helper.cc b/win8/test/metro_registration_helper.cc |
index c5d6735a4e9c831e5fdc9d91a1888dfd0bf41bf2..59b2235034c1dac80b2e43763665ad6551c3258f 100644 |
--- a/win8/test/metro_registration_helper.cc |
+++ b/win8/test/metro_registration_helper.cc |
@@ -53,13 +53,13 @@ bool RegisterTestDefaultBrowser() { |
CommandLine register_command(registrar); |
register_command.AppendArg("/RegServer"); |
- base::win::ScopedHandle register_handle; |
- if (base::LaunchProcess(register_command.GetCommandLineString(), |
- base::LaunchOptions(), |
- ®ister_handle)) { |
+ base::Process register_process = |
+ base::LaunchProcess(register_command.GetCommandLineString(), |
+ base::LaunchOptions()); |
+ if (register_process.IsValid()) { |
int ret = 0; |
if (base::WaitForExitCodeWithTimeout( |
- register_handle.Get(), &ret, |
+ register_process.Handle(), &ret, |
base::TimeDelta::FromSeconds(kRegistrationTimeoutSeconds))) { |
if (ret == 0) { |
return true; |