Commit f2894390 authored by Ahmed Fakhry's avatar Ahmed Fakhry Committed by Commit Bot

Fix a crash on Windows when saving the stale content of an evicted app window

This is only supported on ChromeOS, so make it conditional and follow
the example of Browser::ShouldShowStaleContentOnEviction():
https://cs.chromium.org/chromium/src/chrome/browser/ui/browser.cc?dr=CSs&q=Browser::ShouldShowStaleContentOnEviction&g=0&l=1453

BUG=1036760

Change-Id: Idcf003483600046a4e64ebe0b681bbdb30b8449a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1992515Reviewed-by: default avatarIstiaque Ahmed <lazyboy@chromium.org>
Commit-Queue: Ahmed Fakhry <afakhry@chromium.org>
Cr-Commit-Position: refs/heads/master@{#729809}
parent 4ffd1151
...@@ -455,7 +455,11 @@ void AppWindow::ExitPictureInPicture() { ...@@ -455,7 +455,11 @@ void AppWindow::ExitPictureInPicture() {
} }
bool AppWindow::ShouldShowStaleContentOnEviction(content::WebContents* source) { bool AppWindow::ShouldShowStaleContentOnEviction(content::WebContents* source) {
#if defined(OS_CHROMEOS)
return true; return true;
#else
return false;
#endif // defined(OS_CHROMEOS)
} }
bool AppWindow::OnMessageReceived(const IPC::Message& message, bool AppWindow::OnMessageReceived(const IPC::Message& message,
......
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