DescriptionShow an InfoBar when trying to start Packaged Apps from Metro mode.
Platform Apps do not function properly while in Metro mode.
This change intercepts platform app launch requests done
while the browser is in metro mode, redirecting them to an
infobar. If "yes" is chosen, a local pref is stored with the
extension id and Profile that tried to launch it, and a relaunch
of Chrome in Desktop mode is triggered. Upon restart,
apps::AppLaunchOnRestartService is responsible for launching the
selected app, and clearing the pref.
BUG=153426
TEST=With Chrome configured for Windows 8 mode, try to start a
packaged app. This can be done from NTP (if launcher not enabled),
or from a taskbar shortcut, a desktop shortcut, or a pinned start
page tile. InfoBar should display offering to switch to Desktop mode.
If switching, selected packaged app should launch after a brief
delay.
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=190306
Patch Set 1 #Patch Set 2 : Version before the delay #Patch Set 3 : add a 1 second delay, some nits #
Total comments: 7
Patch Set 4 : indenting, rebase #Patch Set 5 : should look something like this #Patch Set 6 : ProfileManager::GetProfile docuentation so misleading.. #Patch Set 7 : handle flakiness #
Total comments: 12
Patch Set 8 : fix another corner case #
Total comments: 1
Patch Set 9 : rebase #
Total comments: 1
Patch Set 10 : rebase for DEPS #Patch Set 11 : refactor of startup_browser_creator #Patch Set 12 : rollback for othogonal change #Patch Set 13 : respond to comments #
Total comments: 4
Patch Set 14 : keep strings in sync with webstore #Patch Set 15 : feedback #
Messages
Total messages: 21 (0 generated)
|