win: Fix compiler warning

This commit is contained in:
Cheng Zhao 2015-08-11 23:38:59 +08:00
parent a8681b0072
commit 1e9eaba423
2 changed files with 3 additions and 2 deletions

View file

@ -69,7 +69,8 @@ ProcessOwner GetProcessOwner(int process_id,
return OWNER_NONE;
// First search for NativeWindow.
if ((*window = NativeWindow::FromWebContents(web_contents)))
*window = NativeWindow::FromWebContents(web_contents);
if (window)
return OWNER_NATIVE_WINDOW;
// Then search for guest WebContents.