Chromium Code Reviews| Index: chrome/browser/ui/toolbar/app_menu_icon_controller.h |
| diff --git a/chrome/browser/ui/toolbar/app_menu_icon_controller.h b/chrome/browser/ui/toolbar/app_menu_icon_controller.h |
| index 4d8698f08e527a1dfef48ceb7f87d07f4d263d62..05f9de6ef8fdb74c8e855288a837d6a688c14c29 100644 |
| --- a/chrome/browser/ui/toolbar/app_menu_icon_controller.h |
| +++ b/chrome/browser/ui/toolbar/app_menu_icon_controller.h |
| @@ -12,11 +12,19 @@ |
| #include "content/public/browser/notification_registrar.h" |
| #include "content/public/browser/notification_service.h" |
| +#if defined(OS_WIN) |
|
Peter Kasting
2016/08/05 00:10:08
Nit: Consider whether it might be cleaner to have
chrisha
2016/08/12 19:04:40
I'll stick with the existing system for now. I thi
|
| +#include "chrome/browser/win/enumerate_modules_model.h" |
| +#endif |
| + |
| class Profile; |
| // AppMenuIconController encapsulates the logic for badging the app menu icon |
| // as a result of various events - such as available updates, errors, etc. |
| -class AppMenuIconController : public content::NotificationObserver { |
| +class AppMenuIconController : |
| +#if defined(OS_WIN) |
| + public EnumerateModulesModel::Observer, |
| +#endif |
| + public content::NotificationObserver { |
| public: |
| enum class IconType { |
| NONE, |
| @@ -56,6 +64,12 @@ class AppMenuIconController : public content::NotificationObserver { |
| const content::NotificationSource& source, |
| const content::NotificationDetails& details) override; |
| +#if defined(OS_WIN) |
| + // EnumerateModulesModel: |
| + void OnScanCompleted() override; |
| + void OnConflictsAcknowledged() override; |
| +#endif |
| + |
| Profile* profile_; |
| Delegate* delegate_; |
| content::NotificationRegistrar registrar_; |