| Index: chrome/browser/extensions/api/extension_action/browser_action_apitest.cc
|
| ===================================================================
|
| --- chrome/browser/extensions/api/extension_action/browser_action_apitest.cc (revision 148382)
|
| +++ chrome/browser/extensions/api/extension_action/browser_action_apitest.cc (working copy)
|
| @@ -295,7 +295,8 @@
|
| // Open an incognito window and test that the browser action isn't there by
|
| // default.
|
| Profile* incognito_profile = browser()->profile()->GetOffTheRecordProfile();
|
| - Browser* incognito_browser = Browser::Create(incognito_profile);
|
| + Browser* incognito_browser =
|
| + new Browser(Browser::CreateParams(incognito_profile));
|
|
|
| ASSERT_EQ(0,
|
| BrowserActionTestUtil(incognito_browser).NumberOfBrowserActions());
|
| @@ -307,7 +308,7 @@
|
| SetIsIncognitoEnabled(extension->id(), true);
|
|
|
| chrome::CloseWindow(incognito_browser);
|
| - incognito_browser = Browser::Create(incognito_profile);
|
| + incognito_browser = new Browser(Browser::CreateParams(incognito_profile));
|
| ASSERT_EQ(1,
|
| BrowserActionTestUtil(incognito_browser).NumberOfBrowserActions());
|
|
|
| @@ -345,7 +346,8 @@
|
| service->extension_prefs()->SetIsIncognitoEnabled(extension_c->id(), true);
|
|
|
| Profile* incognito_profile = browser()->profile()->GetOffTheRecordProfile();
|
| - Browser* incognito_browser = Browser::Create(incognito_profile);
|
| + Browser* incognito_browser =
|
| + new Browser(Browser::CreateParams(incognito_profile));
|
| BrowserActionTestUtil incognito_bar(incognito_browser);
|
|
|
| // Navigate just to have a tab in this window, otherwise wonky things happen.
|
|
|