Index: chrome/browser/extensions/platform_app_browsertest.cc |
diff --git a/chrome/browser/extensions/platform_app_browsertest.cc b/chrome/browser/extensions/platform_app_browsertest.cc |
index 7902b4f3cfc937b7ae949d8e57558c9dab5f3b31..b55f6ead8721ca47ff603e2b69dcc885cd7d93d9 100644 |
--- a/chrome/browser/extensions/platform_app_browsertest.cc |
+++ b/chrome/browser/extensions/platform_app_browsertest.cc |
@@ -771,12 +771,12 @@ IN_PROC_BROWSER_TEST_F(PlatformAppBrowserTest, MAYBE_ConstrainedWindowRequest) { |
// Verify that the shell window has a constrained window attached. |
ConstrainedWindowTabHelper* constrained_window_tab_helper = |
ConstrainedWindowTabHelper::FromWebContents(web_contents); |
- EXPECT_EQ(1u, constrained_window_tab_helper->constrained_window_count()); |
+ EXPECT_EQ(1u, constrained_window_tab_helper->dialog_count()); |
// Close the constrained window and wait for the reply to the permission |
// request. |
ExtensionTestMessageListener listener("PermissionRequestDone", false); |
- constrained_window_tab_helper->CloseConstrainedWindows(); |
+ constrained_window_tab_helper->CloseAllDialogs(); |
ASSERT_TRUE(listener.WaitUntilSatisfied()); |
} |