| Index: chrome/browser/ui/cocoa/constrained_window/constrained_window_mac_browsertest.mm
|
| diff --git a/chrome/browser/ui/cocoa/constrained_window/constrained_window_mac_browsertest.mm b/chrome/browser/ui/cocoa/constrained_window/constrained_window_mac_browsertest.mm
|
| index 4fdfb2c312a87ff00a963bf32cbce280c88aad88..77b413eddf4afed0069f969fac46a9f64c0a72a0 100644
|
| --- a/chrome/browser/ui/cocoa/constrained_window/constrained_window_mac_browsertest.mm
|
| +++ b/chrome/browser/ui/cocoa/constrained_window/constrained_window_mac_browsertest.mm
|
| @@ -85,7 +85,7 @@ IN_PROC_BROWSER_TEST_F(ConstrainedWindowMacTest, ShowInInactiveTab) {
|
| browser()->tab_strip_model()->ActivateTabAt(0, true);
|
| EXPECT_EQ(1.0, [sheet_window_ alphaValue]);
|
|
|
| - dialog.CloseConstrainedWindow();
|
| + dialog.CloseWebContentsModalDialog();
|
| }
|
|
|
| // If a tab has never been shown then the associated tab view for the web
|
| @@ -113,7 +113,7 @@ IN_PROC_BROWSER_TEST_F(ConstrainedWindowMacTest, ShowInUninitializedTab) {
|
| EXPECT_TRUE([sheet_window_ isVisible]);
|
| EXPECT_EQ(1.0, [sheet_window_ alphaValue]);
|
|
|
| - dialog.CloseConstrainedWindow();
|
| + dialog.CloseWebContentsModalDialog();
|
| }
|
|
|
| // Test that adding a sheet disables tab dragging.
|
| @@ -125,7 +125,7 @@ IN_PROC_BROWSER_TEST_F(ConstrainedWindowMacTest, TabDragging) {
|
| EXPECT_TRUE([controller_ isTabDraggable:tab_view0_]);
|
| EXPECT_FALSE([controller_ isTabDraggable:tab_view1_]);
|
|
|
| - dialog.CloseConstrainedWindow();
|
| + dialog.CloseWebContentsModalDialog();
|
| }
|
|
|
| // Test that closing a browser window with a sheet works.
|
| @@ -165,5 +165,5 @@ IN_PROC_BROWSER_TEST_F(ConstrainedWindowMacTest, Fullscreen) {
|
|
|
| EXPECT_FALSE(chrome::IsCommandEnabled(browser(), IDC_FULLSCREEN));
|
|
|
| - dialog.CloseConstrainedWindow();
|
| + dialog.CloseWebContentsModalDialog();
|
| }
|
|
|