| Index: chrome/browser/ui/views/constrained_window_views_browsertest.cc
|
| diff --git a/chrome/browser/ui/views/constrained_window_views_browsertest.cc b/chrome/browser/ui/views/constrained_window_views_browsertest.cc
|
| index b2c2567f8407734ec962567c8a1821c055945a41..ebbcd1622a8a945af3fb9ef677b9de05a6cc1e34 100644
|
| --- a/chrome/browser/ui/views/constrained_window_views_browsertest.cc
|
| +++ b/chrome/browser/ui/views/constrained_window_views_browsertest.cc
|
| @@ -136,7 +136,7 @@ IN_PROC_BROWSER_TEST_F(ConstrainedWindowViewTest, FocusTest) {
|
|
|
| // Create a constrained dialog. It will attach itself to web_contents.
|
| scoped_ptr<TestConstrainedDialog> test_dialog1(new TestConstrainedDialog);
|
| - ConstrainedWindowViews* window1 = new ConstrainedWindowViews(
|
| + ConstrainedWindowViews* window1 = ConstrainedWindowViews::Create(
|
| web_contents, test_dialog1.get());
|
|
|
| views::FocusManager* focus_manager = window1->GetFocusManager();
|
| @@ -150,7 +150,7 @@ IN_PROC_BROWSER_TEST_F(ConstrainedWindowViewTest, FocusTest) {
|
| // web_contents, but will remain hidden since the test_dialog1 is still
|
| // showing.
|
| scoped_ptr<TestConstrainedDialog> test_dialog2(new TestConstrainedDialog);
|
| - ConstrainedWindowViews* window2 = new ConstrainedWindowViews(
|
| + ConstrainedWindowViews* window2 = ConstrainedWindowViews::Create(
|
| web_contents, test_dialog2.get());
|
| // Should be the same focus_manager.
|
| ASSERT_EQ(focus_manager, window2->GetFocusManager());
|
| @@ -211,7 +211,7 @@ IN_PROC_BROWSER_TEST_F(ConstrainedWindowViewTest, TabCloseTest) {
|
|
|
| // Create a constrained dialog. It will attach itself to web_contents.
|
| scoped_ptr<TestConstrainedDialog> test_dialog(new TestConstrainedDialog);
|
| - new ConstrainedWindowViews(
|
| + ConstrainedWindowViews::Create(
|
| web_contents, test_dialog.get());
|
|
|
| bool closed =
|
| @@ -232,7 +232,7 @@ IN_PROC_BROWSER_TEST_F(ConstrainedWindowViewTest, TabSwitchTest) {
|
|
|
| // Create a constrained dialog. It will attach itself to web_contents.
|
| scoped_ptr<TestConstrainedDialog> test_dialog(new TestConstrainedDialog);
|
| - ConstrainedWindowViews* window = new ConstrainedWindowViews(
|
| + ConstrainedWindowViews* window = ConstrainedWindowViews::Create(
|
| web_contents, test_dialog.get());
|
| EXPECT_TRUE(window->IsVisible());
|
|
|
|
|