| Index: chrome/browser/ui/views/constrained_window_views_browsertest.cc
|
| ===================================================================
|
| --- chrome/browser/ui/views/constrained_window_views_browsertest.cc (revision 162255)
|
| +++ chrome/browser/ui/views/constrained_window_views_browsertest.cc (working copy)
|
| @@ -114,9 +114,8 @@
|
|
|
| // Create a constrained dialog. It will attach itself to tab_contents.
|
| scoped_ptr<TestConstrainedDialog> test_dialog1(new TestConstrainedDialog);
|
| - ConstrainedWindowViews* window1 = new ConstrainedWindowViews(
|
| - web_contents, test_dialog1.get(), false,
|
| - ConstrainedWindowViews::DEFAULT_INSETS);
|
| + ConstrainedWindowViews* window1 =
|
| + new ConstrainedWindowViews(web_contents, test_dialog1.get(), false);
|
|
|
| views::FocusManager* focus_manager = window1->GetFocusManager();
|
| ASSERT_TRUE(focus_manager);
|
| @@ -129,9 +128,8 @@
|
| // tab_contents, but will remain hidden since the test_dialog1 is still
|
| // showing.
|
| scoped_ptr<TestConstrainedDialog> test_dialog2(new TestConstrainedDialog);
|
| - ConstrainedWindowViews* window2 = new ConstrainedWindowViews(
|
| - web_contents, test_dialog2.get(), false,
|
| - ConstrainedWindowViews::DEFAULT_INSETS);
|
| + ConstrainedWindowViews* window2 =
|
| + new ConstrainedWindowViews(web_contents, test_dialog2.get(), false);
|
| // Should be the same focus_manager.
|
| ASSERT_EQ(focus_manager, window2->GetFocusManager());
|
|
|
| @@ -188,9 +186,8 @@
|
|
|
| // Create a constrained dialog. It will attach itself to tab_contents.
|
| scoped_ptr<TestConstrainedDialog> test_dialog(new TestConstrainedDialog);
|
| - ConstrainedWindowViews* window = new ConstrainedWindowViews(
|
| - web_contents, test_dialog.get(), true,
|
| - ConstrainedWindowViews::DEFAULT_INSETS);
|
| + ConstrainedWindowViews* window =
|
| + new ConstrainedWindowViews(web_contents, test_dialog.get(), true);
|
|
|
| bool closed =
|
| browser()->tab_strip_model()->CloseTabContentsAt(
|
|
|