| Index: chrome/browser/ui/tabs/pinned_tab_service.h
|
| diff --git a/chrome/browser/ui/tabs/pinned_tab_service.h b/chrome/browser/ui/tabs/pinned_tab_service.h
|
| index f1dc573b8cf7e9da006053201dc3da8fdcc26593..2cd3e5d530fa36fc9d1fb1fec2f6231e61a0b731 100644
|
| --- a/chrome/browser/ui/tabs/pinned_tab_service.h
|
| +++ b/chrome/browser/ui/tabs/pinned_tab_service.h
|
| @@ -7,6 +7,7 @@
|
|
|
| #include "base/compiler_specific.h"
|
| #include "base/macros.h"
|
| +#include "chrome/browser/ui/browser_list_observer.h"
|
| #include "components/keyed_service/core/keyed_service.h"
|
| #include "content/public/browser/notification_observer.h"
|
| #include "content/public/browser/notification_registrar.h"
|
| @@ -17,6 +18,7 @@ class Profile;
|
| // pinned tabs to restore at startup. PinnedTabService listens for the
|
| // appropriate set of notifications to know it should update preferences.
|
| class PinnedTabService : public content::NotificationObserver,
|
| + public chrome::BrowserListObserver,
|
| public KeyedService {
|
| public:
|
| explicit PinnedTabService(Profile* profile);
|
| @@ -27,6 +29,9 @@ class PinnedTabService : public content::NotificationObserver,
|
| const content::NotificationSource& source,
|
| const content::NotificationDetails& details) override;
|
|
|
| + // chrome::BrowserListObserver:
|
| + void OnBrowserCloseStarted(Browser* browser) override;
|
| +
|
| Profile* profile_;
|
|
|
| // True if we should save the pinned tabs when a browser window closes or the
|
|
|