Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(527)

Unified Diff: chrome/browser/profiles/profile_window_browsertest.cc

Issue 1637943003: Remove HostDesktopType from BrowserList::GetInstance() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@screen-wrapper-land
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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());

Powered by Google App Engine
This is Rietveld 408576698