summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
Diffstat (limited to 'chrome')
-rw-r--r--chrome/views/focus_manager_unittest.cc3
-rw-r--r--chrome/views/view_unittest.cc2
2 files changed, 3 insertions, 2 deletions
diff --git a/chrome/views/focus_manager_unittest.cc b/chrome/views/focus_manager_unittest.cc
index 4a7240a..ce26b04 100644
--- a/chrome/views/focus_manager_unittest.cc
+++ b/chrome/views/focus_manager_unittest.cc
@@ -264,7 +264,8 @@ void TestViewWindow::Init() {
contents_->SetBackground(
ChromeViews::Background::CreateSolidBackground(255, 255, 255));
- HWNDViewContainer::Init(NULL, bounds, contents_, true);
+ HWNDViewContainer::Init(NULL, bounds, true);
+ SetContentsView(contents_);
ChromeViews::CheckBox* cb =
new ChromeViews::CheckBox(L"This is a checkbox");
diff --git a/chrome/views/view_unittest.cc b/chrome/views/view_unittest.cc
index 3dfd986..9ecc585 100644
--- a/chrome/views/view_unittest.cc
+++ b/chrome/views/view_unittest.cc
@@ -312,7 +312,7 @@ TEST_F(ViewTest, MouseEvent) {
ChromeViews::HWNDViewContainer window;
window.set_delete_on_destroy(false);
window.set_window_style(WS_OVERLAPPEDWINDOW);
- window.Init(NULL, gfx::Rect(50, 50, 650, 650), NULL, false);
+ window.Init(NULL, gfx::Rect(50, 50, 650, 650), false);
RootView* root = window.GetRootView();
root->AddChildView(v1);