Index: chrome/browser/ui/find_bar/find_bar_host_browsertest.cc |
=================================================================== |
--- chrome/browser/ui/find_bar/find_bar_host_browsertest.cc (revision 148382) |
+++ chrome/browser/ui/find_bar/find_bar_host_browsertest.cc (working copy) |
@@ -1127,7 +1127,8 @@ |
// Open a new incognito window and navigate to the same page. |
Profile* incognito_profile = browser()->profile()->GetOffTheRecordProfile(); |
- Browser* incognito_browser = Browser::Create(incognito_profile); |
+ Browser* incognito_browser = |
+ new Browser(Browser::CreateParams(incognito_profile)); |
content::WindowedNotificationObserver observer( |
content::NOTIFICATION_LOAD_STOP, |
content::NotificationService::AllSources()); |
@@ -1193,7 +1194,7 @@ |
IN_PROC_BROWSER_TEST_F(FindInPageControllerTest, MAYBE_FitWindow) { |
Browser::CreateParams params(Browser::TYPE_POPUP, browser()->profile()); |
params.initial_bounds = gfx::Rect(0, 0, 250, 500); |
- Browser* popup = Browser::CreateWithParams(params); |
+ Browser* popup = new Browser(params); |
content::WindowedNotificationObserver observer( |
content::NOTIFICATION_LOAD_STOP, |
content::NotificationService::AllSources()); |