diff options
author | tapted@chromium.org <tapted@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-10-21 09:33:22 +0000 |
---|---|---|
committer | tapted@chromium.org <tapted@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-10-21 09:33:22 +0000 |
commit | b4a83929534d62b9094ec4e926bffcc8f435f29a (patch) | |
tree | 44ea61c03d91bb24a99505e5652990fc7d3f282f /chrome/browser/apps/app_browsertest.cc | |
parent | ea6fc63d362cd460dd81ab9a5ad76d989809c9c5 (diff) | |
download | chromium_src-b4a83929534d62b9094ec4e926bffcc8f435f29a.zip chromium_src-b4a83929534d62b9094ec4e926bffcc8f435f29a.tar.gz chromium_src-b4a83929534d62b9094ec4e926bffcc8f435f29a.tar.bz2 |
[win8] Ensure the desktop type (e.g. ash) of a hosted app launch matches the launching app list
Apps launched from an app launcher should always launch on the same
desktop type that a particular app launcher was launched for. Relying on
GetActiveDesktop is too error-prone.
This CL adds the desktop type to AppLaunchParams and ensures the desktop
type is fed through to the specific launch functions used for hosted apps.
Packaged apps are not yet addressed by this CL, and will be fixed in a
follow-up.
R=benwells@chromium.org,sky@chromium.org
TBR=sky@chromium.org
BUG=288251
TEST=A reliable repro that works around http://crbug.com/303524 seems to be:
- Ensure Chrome is not running, then open a Chrome browser in desktop mode
- Open app launcher from taskbar, launch Webstore
-> Webstore should open in the Desktop browser
- Close Webstore tab. Open Chrome in Ash. Enter Win8 split screen, put Ash
in a small part of the screen on the left, put Win8 desktop on the other half.
- In the little ash window, Open Ash's App Launcher. Open Webstore.
-> Webstore should open in the Ash mode browser window.
(before this fix, it would open in Desktop mode)
Previously Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=229534
Review URL: https://codereview.chromium.org/23902048
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@229766 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/apps/app_browsertest.cc')
-rw-r--r-- | chrome/browser/apps/app_browsertest.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/browser/apps/app_browsertest.cc b/chrome/browser/apps/app_browsertest.cc index 63ee28a..02f77333 100644 --- a/chrome/browser/apps/app_browsertest.cc +++ b/chrome/browser/apps/app_browsertest.cc @@ -1221,7 +1221,8 @@ IN_PROC_BROWSER_TEST_F(PlatformAppIncognitoBrowserTest, IncognitoComponentApp) { ASSERT_TRUE(registry != NULL); registry->AddObserver(this); - OpenApplication(AppLaunchParams(incognito_profile, file_manager, 0)); + OpenApplication(AppLaunchParams( + incognito_profile, file_manager, 0, chrome::HOST_DESKTOP_TYPE_NATIVE)); while (!ContainsKey(opener_app_ids_, file_manager->id())) { content::RunAllPendingInMessageLoop(); |