| Index: chrome/browser/ui/ash/launcher/app_shortcut_launcher_item_controller.cc
|
| diff --git a/chrome/browser/ui/ash/launcher/app_shortcut_launcher_item_controller.cc b/chrome/browser/ui/ash/launcher/app_shortcut_launcher_item_controller.cc
|
| index 80e7623ea6e32e7abcd276e437c4bbcc332a9dd7..190a91f6956b3cff64fc9e13aea39455c49361dc 100644
|
| --- a/chrome/browser/ui/ash/launcher/app_shortcut_launcher_item_controller.cc
|
| +++ b/chrome/browser/ui/ash/launcher/app_shortcut_launcher_item_controller.cc
|
| @@ -13,9 +13,10 @@
|
| #include "chrome/browser/ui/ash/launcher/launcher_item_controller.h"
|
| #include "chrome/browser/ui/browser.h"
|
| #include "chrome/browser/ui/browser_finder.h"
|
| -#include "chrome/browser/ui/browser_list.h"
|
| +#include "chrome/browser/ui/browser_list_impl.h"
|
| #include "chrome/browser/ui/browser_window.h"
|
| #include "chrome/browser/ui/extensions/native_app_window.h"
|
| +#include "chrome/browser/ui/host_desktop.h"
|
| #include "chrome/browser/ui/tabs/tab_strip_model.h"
|
| #include "content/public/browser/web_contents.h"
|
|
|
| @@ -144,9 +145,11 @@ AppShortcutLauncherItemController::GetRunningApplications() {
|
| const Extension* extension =
|
| launcher_controller()->GetExtensionForAppID(app_id());
|
|
|
| - for (BrowserList::const_reverse_iterator it =
|
| - BrowserList::begin_last_active();
|
| - it != BrowserList::end_last_active(); ++it) {
|
| + const chrome::BrowserListImpl* ash_browser_list =
|
| + chrome::BrowserListImpl::GetInstance(chrome::HOST_DESKTOP_TYPE_ASH);
|
| + for (chrome::BrowserListImpl::const_reverse_iterator it =
|
| + ash_browser_list->begin_last_active();
|
| + it != ash_browser_list->end_last_active(); ++it) {
|
| Browser* browser = *it;
|
| TabStripModel* tab_strip = browser->tab_strip_model();
|
| // We start to enumerate from the active index.
|
|
|