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

Unified Diff: chrome/browser/extensions/app_process_apitest.cc

Issue 1637943003: Remove HostDesktopType from BrowserList::GetInstance() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@screen-wrapper-land
Patch Set: mac2 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/extensions/app_process_apitest.cc
diff --git a/chrome/browser/extensions/app_process_apitest.cc b/chrome/browser/extensions/app_process_apitest.cc
index ba22a738cc3dd4c108023f52352953db0aa4174a..702ecd30aafd072f4b823ae317f2a45d6175440f 100644
--- a/chrome/browser/extensions/app_process_apitest.cc
+++ b/chrome/browser/extensions/app_process_apitest.cc
@@ -623,8 +623,7 @@ IN_PROC_BROWSER_TEST_F(AppApiTest, OpenAppFromIframe) {
browser()->tab_strip_model()->GetWebContentsAt(0)->
GetRenderProcessHost()->GetID()));
- const BrowserList* active_browser_list =
- BrowserList::GetInstance(chrome::GetActiveDesktop());
+ const BrowserList* active_browser_list = BrowserList::GetInstance();
EXPECT_EQ(2U, active_browser_list->size());
content::WebContents* popup_contents =
active_browser_list->get(1)->tab_strip_model()->GetActiveWebContents();
@@ -769,8 +768,7 @@ IN_PROC_BROWSER_TEST_F(AppApiTest, OpenWebPopupFromWebIframe) {
// Popup window should be in the app's process if site isolation is off;
// otherwise they should be in different processes.
- const BrowserList* active_browser_list =
- BrowserList::GetInstance(chrome::GetActiveDesktop());
+ const BrowserList* active_browser_list = BrowserList::GetInstance();
EXPECT_EQ(2U, active_browser_list->size());
content::WebContents* popup_contents =
active_browser_list->get(1)->tab_strip_model()->GetActiveWebContents();
@@ -853,8 +851,7 @@ IN_PROC_BROWSER_TEST_F(AppApiTest, SameBrowsingInstanceAfterSwap) {
EXPECT_TRUE(process_map->Contains(app_instance->GetProcess()->GetID()));
// Popup window should be in the app's process.
- const BrowserList* active_browser_list =
- BrowserList::GetInstance(chrome::GetActiveDesktop());
+ const BrowserList* active_browser_list = BrowserList::GetInstance();
EXPECT_EQ(2U, active_browser_list->size());
content::WebContents* popup_contents =
active_browser_list->get(1)->tab_strip_model()->GetActiveWebContents();
« no previous file with comments | « chrome/browser/extensions/api/tab_capture/offscreen_tab.cc ('k') | chrome/browser/lifetime/browser_close_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698