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

Unified Diff: chrome/browser/ui/ash/launcher/browser_shortcut_launcher_item_controller.h

Issue 2793443003: Removed NOTIFICATION_BROWSER_CLOSING notification (Closed)
Patch Set: Removed unused headers from unload controllers Created 3 years, 8 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/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);
};

Powered by Google App Engine
This is Rietveld 408576698