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

Unified Diff: chrome/browser/ui/ash/launcher/chrome_launcher_controller.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/ui/ash/launcher/chrome_launcher_controller.cc
diff --git a/chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc b/chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc
index 128de1de23625981a0d69ba19248634a00a68b94..3a756d2922187c7f90922ef2e0cd4eb9f68182bf 100644
--- a/chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc
+++ b/chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc
@@ -2143,12 +2143,11 @@ void ChromeLauncherController::CloseWindowedAppsFromRemovedExtension(
const Profile* profile) {
// This function cannot rely on the controller's enumeration functionality
// since the extension has already be unloaded.
- const BrowserList* ash_browser_list =
- BrowserList::GetInstance(chrome::HOST_DESKTOP_TYPE_ASH);
+ const BrowserList* browser_list = BrowserList::GetInstance();
std::vector<Browser*> browser_to_close;
- for (BrowserList::const_reverse_iterator
- it = ash_browser_list->begin_last_active();
- it != ash_browser_list->end_last_active(); ++it) {
+ for (BrowserList::const_reverse_iterator it =
+ browser_list->begin_last_active();
+ it != browser_list->end_last_active(); ++it) {
Browser* browser = *it;
if (!browser->is_type_tabbed() && browser->is_type_popup() &&
browser->is_app() &&

Powered by Google App Engine
This is Rietveld 408576698