X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fchrome%2Finstaller%2Fsetup%2Funinstall.cc;h=0d8293f0d63037d2c6f35c5c426bf5ee3f1fad2b;hb=3545e9f2671f595d2a2f3ee75ca0393b01e35ef6;hp=ce02a20b79d9fe9896be39cdeb4460d0abe61cbd;hpb=7d210d4c7e9ba36e635eabc5b5780495f8a63292;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/chrome/installer/setup/uninstall.cc b/src/chrome/installer/setup/uninstall.cc index ce02a20..0d8293f 100644 --- a/src/chrome/installer/setup/uninstall.cc +++ b/src/chrome/installer/setup/uninstall.cc @@ -11,8 +11,8 @@ #include #include "base/base_paths.h" -#include "base/file_util.h" #include "base/files/file_enumerator.h" +#include "base/files/file_util.h" #include "base/path_service.h" #include "base/process/kill.h" #include "base/strings/string16.h" @@ -282,13 +282,13 @@ void CloseChromeFrameHelperProcess() { ::GetWindowThreadProcessId(window, &pid); DCHECK_NE(pid, 0U); base::win::ScopedHandle process(::OpenProcess(SYNCHRONIZE, FALSE, pid)); - PLOG_IF(INFO, !process) << "Failed to open process: " << pid; + PLOG_IF(INFO, !process.IsValid()) << "Failed to open process: " << pid; bool kill = true; if (SendMessageTimeout(window, WM_CLOSE, 0, 0, SMTO_BLOCK, kWaitMs, NULL) && - process) { + process.IsValid()) { VLOG(1) << "Waiting for " << installer::kChromeFrameHelperExe; - DWORD wait = ::WaitForSingleObject(process, kWaitMs); + DWORD wait = ::WaitForSingleObject(process.Get(), kWaitMs); if (wait != WAIT_OBJECT_0) { LOG(WARNING) << "Wait for " << installer::kChromeFrameHelperExe << " to exit failed or timed out.";