Hidden windows should not keep Chrome alive.
commit39d75d5b5f11525e384745fd313d1d77ed7d0a88
authorjackhou <jackhou@chromium.org>
Mon, 16 Feb 2015 00:38:54 +0000 (15 16:38 -0800)
committerCommit bot <commit-bot@chromium.org>
Mon, 16 Feb 2015 00:40:05 +0000 (16 00:40 +0000)
treee7538fc999a03f9b9b9842f443656478f516d9f3
parent1752909c117de5582d2751d0c467153bc30c5261
Hidden windows should not keep Chrome alive.

For each app window, there is a ChromeAppDelegate which
holds a ScopedKeepAlive. This CL resets the ScopedKeepAlive
while the app window is hidden.

BUG=450710

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

Cr-Commit-Position: refs/heads/master@{#316413}
chrome/browser/apps/app_window_interactive_uitest.cc
chrome/browser/ui/apps/chrome_app_delegate.cc
chrome/browser/ui/apps/chrome_app_delegate.h
chrome/test/data/extensions/platform_apps/hidden/test.js
chrome/test/data/extensions/platform_apps/hidden_then_shown/empty.html [new file with mode: 0644]
chrome/test/data/extensions/platform_apps/hidden_then_shown/manifest.json [new file with mode: 0644]
chrome/test/data/extensions/platform_apps/hidden_then_shown/test.js [copied from chrome/test/data/extensions/platform_apps/hidden/test.js with 50% similarity]
extensions/browser/app_window/app_delegate.h
extensions/browser/app_window/app_window.cc
extensions/shell/browser/shell_app_delegate.h