summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--chrome/browser/back_forward_menu_model_unittest.cc2
-rw-r--r--chrome/browser/navigation_controller_unittest.cc4
2 files changed, 3 insertions, 3 deletions
diff --git a/chrome/browser/back_forward_menu_model_unittest.cc b/chrome/browser/back_forward_menu_model_unittest.cc
index a1d9e47..e194480 100644
--- a/chrome/browser/back_forward_menu_model_unittest.cc
+++ b/chrome/browser/back_forward_menu_model_unittest.cc
@@ -95,7 +95,7 @@ class BackFwdMenuModelTest : public testing::Test {
protected:
TabContents* CreateTabContents() {
TabContents* contents = new BackFwdMenuModelTestTabContents;
- contents->CreateView(::GetDesktopWindow(), gfx::Rect());
+ contents->CreateView();
contents->SetupController(profile_);
return contents;
}
diff --git a/chrome/browser/navigation_controller_unittest.cc b/chrome/browser/navigation_controller_unittest.cc
index 64dae5e..f7baada 100644
--- a/chrome/browser/navigation_controller_unittest.cc
+++ b/chrome/browser/navigation_controller_unittest.cc
@@ -52,7 +52,7 @@ class NavigationControllerTest : public testing::Test,
contents = new TestTabContents(type1());
contents->set_delegate(this);
- contents->CreateView(::GetDesktopWindow(), gfx::Rect());
+ contents->CreateView();
contents->SetupController(profile);
}
@@ -1233,7 +1233,7 @@ TEST_F(NavigationControllerTest, RestoreNavigate) {
navigations.push_back(TabNavigation(0, url, GURL(), L"Title", "state",
PageTransition::LINK));
NavigationController* controller =
- new NavigationController(profile, navigations, 0, NULL);
+ new NavigationController(profile, navigations, 0);
controller->GoToIndex(0);
// We should now have one entry, and it should be "pending".