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

Unified Diff: chrome/browser/extensions/api/tab_capture/offscreen_tab.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/api/tab_capture/offscreen_tab.cc
diff --git a/chrome/browser/extensions/api/tab_capture/offscreen_tab.cc b/chrome/browser/extensions/api/tab_capture/offscreen_tab.cc
index 006968aeb63f889e614bb39d39734aab3e275429..93d8363db02bc17791ed3b11449246d058190119 100644
--- a/chrome/browser/extensions/api/tab_capture/offscreen_tab.cc
+++ b/chrome/browser/extensions/api/tab_capture/offscreen_tab.cc
@@ -92,8 +92,7 @@ class WindowAdoptionAgent : protected aura::WindowObserver {
}
void FindNewParent() {
- BrowserList* const browsers =
- BrowserList::GetInstance(chrome::GetActiveDesktop());
+ BrowserList* const browsers = BrowserList::GetInstance();
Browser* const active_browser =
browsers ? browsers->GetLastActive() : nullptr;
BrowserWindow* const active_window =

Powered by Google App Engine
This is Rietveld 408576698