| Index: chrome/browser/ui/views/frame/app_non_client_frame_view_ash_browsertest.cc
|
| diff --git a/chrome/browser/ui/views/frame/app_non_client_frame_view_ash_browsertest.cc b/chrome/browser/ui/views/frame/app_non_client_frame_view_ash_browsertest.cc
|
| index b98a81972fe4be4beccdb9fbdd95dea62a9002c4..7374050b34549f8780c3c1493fa56d1b9cd56411 100644
|
| --- a/chrome/browser/ui/views/frame/app_non_client_frame_view_ash_browsertest.cc
|
| +++ b/chrome/browser/ui/views/frame/app_non_client_frame_view_ash_browsertest.cc
|
| @@ -147,7 +147,8 @@ IN_PROC_BROWSER_TEST_F(AppNonClientFrameViewAshTest, ClickClose) {
|
| content::Source<Browser>(app_browser()));
|
| eg.ClickLeftButton();
|
| signal.Wait();
|
| - EXPECT_EQ(1u, chrome::GetBrowserCount(browser()->profile()));
|
| + EXPECT_EQ(1u, chrome::GetBrowserCount(browser()->profile(),
|
| + browser()->host_desktop_type()));
|
| }
|
|
|
| // Ensure that closing a maximized app with Ctrl-W does not crash the
|
| @@ -157,7 +158,8 @@ IN_PROC_BROWSER_TEST_F(AppNonClientFrameViewAshTest, KeyboardClose) {
|
| aura::test::EventGenerator eg(root_window);
|
|
|
| // Base browser and app browser.
|
| - EXPECT_EQ(2u, chrome::GetBrowserCount(browser()->profile()));
|
| + EXPECT_EQ(2u, chrome::GetBrowserCount(browser()->profile(),
|
| + browser()->host_desktop_type()));
|
|
|
| // Send Control-W.
|
| content::WindowedNotificationObserver signal(
|
| @@ -168,7 +170,8 @@ IN_PROC_BROWSER_TEST_F(AppNonClientFrameViewAshTest, KeyboardClose) {
|
| signal.Wait();
|
|
|
| // App browser is closed.
|
| - EXPECT_EQ(1u, chrome::GetBrowserCount(browser()->profile()));
|
| + EXPECT_EQ(1u, chrome::GetBrowserCount(browser()->profile(),
|
| + browser()->host_desktop_type()));
|
| }
|
|
|
| // Ensure that snapping left with Alt-[ closes the control window.
|
|
|