Commit c607f296 authored by dtseng's avatar dtseng Committed by Commit bot

Fix AppWindow access to uninitialized AppWindowContents.

TEST=reproduction in bug no longer occurs.
BUG=576607

Review URL: https://codereview.chromium.org/1668973002

Cr-Commit-Position: refs/heads/master@{#374728}
parent 655530d8
...@@ -520,7 +520,9 @@ void AppWindow::OnNativeWindowActivated() { ...@@ -520,7 +520,9 @@ void AppWindow::OnNativeWindowActivated() {
} }
content::WebContents* AppWindow::web_contents() const { content::WebContents* AppWindow::web_contents() const {
return app_window_contents_->GetWebContents(); if (app_window_contents_)
return app_window_contents_->GetWebContents();
return nullptr;
} }
const Extension* AppWindow::GetExtension() const { const Extension* AppWindow::GetExtension() const {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment