Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / chrome / installer / util / google_update_util.cc
index d3013ba..1b8c74d 100644 (file)
@@ -5,8 +5,8 @@
 #include "chrome/installer/util/google_update_util.h"
 
 #include "base/command_line.h"
-#include "base/file_util.h"
 #include "base/files/file_path.h"
+#include "base/files/file_util.h"
 #include "base/logging.h"
 #include "base/path_service.h"
 #include "base/process/kill.h"
@@ -95,7 +95,8 @@ bool LaunchProcessAndWaitWithTimeout(const base::string16& cmd_string,
   if (!base::LaunchProcess(cmd_string, base::LaunchOptions(),
                            &process)) {
     PLOG(ERROR) << "Failed to launch (" << cmd_string << ")";
-  } else if (!base::WaitForExitCodeWithTimeout(process, &exit_code, timeout)) {
+  } else if (!base::WaitForExitCodeWithTimeout(process.Get(), &exit_code,
+                                               timeout)) {
     // The GetExitCodeProcess failed or timed-out.
     LOG(ERROR) <<"Command (" << cmd_string << ") is taking more than "
                << timeout.InMilliseconds() << " milliseconds to complete.";