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 e8cccfa9bda6605e0ceea10832be2249a34df058..bce75aafc976f051fed12134b2009125f63e6f60 100644 |
--- a/chrome/browser/ui/views/constrained_window_views_browsertest.cc |
+++ b/chrome/browser/ui/views/constrained_window_views_browsertest.cc |
@@ -115,8 +115,9 @@ IN_PROC_BROWSER_TEST_F(ConstrainedWindowViewTest, FocusTest) { |
// 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* window1 = new ConstrainedWindowViews( |
+ web_contents, test_dialog1.get(), false, |
+ ConstrainedWindow::GetDefaultInsets()); |
views::FocusManager* focus_manager = window1->GetFocusManager(); |
ASSERT_TRUE(focus_manager); |
@@ -129,8 +130,9 @@ IN_PROC_BROWSER_TEST_F(ConstrainedWindowViewTest, FocusTest) { |
// 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* window2 = new ConstrainedWindowViews( |
+ web_contents, test_dialog2.get(), false, |
+ ConstrainedWindow::GetDefaultInsets()); |
// Should be the same focus_manager. |
ASSERT_EQ(focus_manager, window2->GetFocusManager()); |
@@ -187,8 +189,9 @@ IN_PROC_BROWSER_TEST_F(ConstrainedWindowViewTest, TabCloseTest) { |
// 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* window = new ConstrainedWindowViews( |
+ web_contents, test_dialog.get(), true, |
+ ConstrainedWindow::GetDefaultInsets()); |
bool closed = |
browser()->tab_strip_model()->CloseTabContentsAt( |