Commit 092f9df5 authored by skuhne@chromium.org's avatar skuhne@chromium.org

Fixing problem with minimizing of applications to incorrect locations

Windows did not get tagged for their applications and as such the shrink/zoom target was showing to the wrong location.

BUG=378806, 378803
TEST=visual

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@273998 0039d316-1c4b-4281-b951-d872f2087c98
parent 66296350
...@@ -103,8 +103,14 @@ void BrowserShortcutLauncherItemController::UpdateBrowserItemState() { ...@@ -103,8 +103,14 @@ void BrowserShortcutLauncherItemController::UpdateBrowserItemState() {
void BrowserShortcutLauncherItemController::SetShelfIDForBrowserWindowContents( void BrowserShortcutLauncherItemController::SetShelfIDForBrowserWindowContents(
Browser* browser, Browser* browser,
content::WebContents* web_contents) { content::WebContents* web_contents) {
if (!IsBrowserRepresentedInBrowserList(browser)) // We need to call SetShelfIDForWindow for V1 applications since they are
// content which might change and as such change the application type.
if (!browser ||
!launcher_controller()->IsBrowserFromActiveUser(browser) ||
browser->host_desktop_type() != chrome::HOST_DESKTOP_TYPE_ASH ||
chrome::IsTrustedPopupWindowWithScheme(browser, content::kChromeUIScheme))
return; return;
ash::SetShelfIDForWindow( ash::SetShelfIDForWindow(
launcher_controller()->GetShelfIDForWebContents(web_contents), launcher_controller()->GetShelfIDForWebContents(web_contents),
browser->window()->GetNativeWindow()); browser->window()->GetNativeWindow());
......
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