| Index: chrome/browser/ui/ash/launcher/browser_shortcut_launcher_item_controller.h
|
| diff --git a/chrome/browser/ui/ash/launcher/browser_shortcut_launcher_item_controller.h b/chrome/browser/ui/ash/launcher/browser_shortcut_launcher_item_controller.h
|
| index a800f2114f1760ff99b3598baf509856d7104e4d..3568d4dc97340db2c2a14132dba13fe75a88912e 100644
|
| --- a/chrome/browser/ui/ash/launcher/browser_shortcut_launcher_item_controller.h
|
| +++ b/chrome/browser/ui/ash/launcher/browser_shortcut_launcher_item_controller.h
|
| @@ -8,8 +8,7 @@
|
| #include "base/macros.h"
|
| #include "chrome/browser/ui/ash/launcher/launcher_item_controller.h"
|
| #include "chrome/browser/ui/browser_list.h"
|
| -#include "content/public/browser/notification_observer.h"
|
| -#include "content/public/browser/notification_registrar.h"
|
| +#include "chrome/browser/ui/browser_list_observer.h"
|
|
|
| namespace ash {
|
| class ShelfModel;
|
| @@ -25,7 +24,7 @@ class ChromeLauncherController;
|
| // This item shows an application menu that lists open browser windows or tabs.
|
| class BrowserShortcutLauncherItemController
|
| : public LauncherItemController,
|
| - public content::NotificationObserver {
|
| + public chrome::BrowserListObserver {
|
| public:
|
| BrowserShortcutLauncherItemController(ChromeLauncherController* controller,
|
| ash::ShelfModel* shelf_model);
|
| @@ -64,19 +63,14 @@ class BrowserShortcutLauncherItemController
|
| // Get a list of active browsers.
|
| BrowserList::BrowserVector GetListOfActiveBrowsers();
|
|
|
| - // content::NotificationObserver:
|
| - void Observe(int type,
|
| - const content::NotificationSource& source,
|
| - const content::NotificationDetails& details) override;
|
| + // chrome::BrowserListObserver:
|
| + void OnBrowserCloseStarted(Browser* browser) override;
|
|
|
| ash::ShelfModel* shelf_model_;
|
|
|
| // The cached list of open browser windows shown in an application menu.
|
| BrowserList::BrowserVector browser_menu_items_;
|
|
|
| - // Registers for notifications of closing browser windows.
|
| - content::NotificationRegistrar registrar_;
|
| -
|
| DISALLOW_COPY_AND_ASSIGN(BrowserShortcutLauncherItemController);
|
| };
|
|
|
|
|