Description[win8] Show a prompt before relaunching Chrome in Windows 8 mode while packaged apps are running.
Introduces ShellWindowRegistry::IsShellWindowRegisteredInAnyProfile to
help determine if packaged apps are currently running. Intercepts the
IDC_WIN8_METRO_RESTART command and shows a modal dialog box if packaged
apps are running to confirm that the user is OK with their packaged
apps closing. Ensures apps with a relaunch handler are not relaunched
when restarting in metro mode.
BUG=222297
TEST=Launch a packaged app in desktop mode and select 'Relaunch Chrome
in Windows 8 mode' from the hotdog menu. A prompt should appear
confirming that your Chrome apps will close if you continue. If no
packaged apps are running, no prompt should appear.
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=192240
Patch Set 1 #
Total comments: 10
Patch Set 2 : respond to comments #
Total comments: 2
Patch Set 3 : comments, moved logic to app_restore_service #Patch Set 4 : decouple #Patch Set 5 : rebase #Patch Set 6 : UI review expressed a preference for OK/Cancel #Patch Set 7 : remove unused code #
Total comments: 6
Patch Set 8 : respond to comments #
Total comments: 3
Patch Set 9 : static function #
Total comments: 4
Patch Set 10 : document ownership #Messages
Total messages: 23 (0 generated)
|