| Index: chrome/browser/profiles/profile_window_browsertest.cc
|
| diff --git a/chrome/browser/profiles/profile_window_browsertest.cc b/chrome/browser/profiles/profile_window_browsertest.cc
|
| index 30f580966fefe0b21bb9178f8f427cc53555a2fc..b8b99ab0b84175c7c2f95622589a4fe1217fcb56 100644
|
| --- a/chrome/browser/profiles/profile_window_browsertest.cc
|
| +++ b/chrome/browser/profiles/profile_window_browsertest.cc
|
| @@ -102,8 +102,7 @@ class ProfileWindowBrowserTest : public InProcessBrowserTest {
|
| };
|
|
|
| Browser* ProfileWindowBrowserTest::OpenGuestBrowser() {
|
| - size_t num_browsers =
|
| - BrowserList::GetInstance(chrome::GetActiveDesktop())->size();
|
| + size_t num_browsers = BrowserList::GetInstance()->size();
|
|
|
| // Create a guest browser nicely. Using CreateProfile() and CreateBrowser()
|
| // does incomplete initialization that would lead to
|
| @@ -118,8 +117,7 @@ Browser* ProfileWindowBrowserTest::OpenGuestBrowser() {
|
| DCHECK_NE(static_cast<Profile*>(nullptr),
|
| g_browser_process->profile_manager()->GetProfileByPath(
|
| ProfileManager::GetGuestProfilePath()));
|
| - EXPECT_EQ(num_browsers + 1,
|
| - BrowserList::GetInstance(chrome::GetActiveDesktop())->size());
|
| + EXPECT_EQ(num_browsers + 1, BrowserList::GetInstance()->size());
|
|
|
| Profile* guest = g_browser_process->profile_manager()->GetProfileByPath(
|
| ProfileManager::GetGuestProfilePath());
|
|
|