| Index: chrome/browser/ui/views/profiles/profile_chooser_view.h
|
| diff --git a/chrome/browser/ui/views/profiles/profile_chooser_view.h b/chrome/browser/ui/views/profiles/profile_chooser_view.h
|
| index f1d78921f05102a921768238d8a6f899a016e2e0..07e7c28420dd4dd83f0133e6f69dd36971c1d1ac 100644
|
| --- a/chrome/browser/ui/views/profiles/profile_chooser_view.h
|
| +++ b/chrome/browser/ui/views/profiles/profile_chooser_view.h
|
| @@ -11,6 +11,7 @@
|
| #include "chrome/browser/profiles/avatar_menu.h"
|
| #include "chrome/browser/profiles/avatar_menu_observer.h"
|
| #include "chrome/browser/profiles/profile_metrics.h"
|
| +#include "chrome/browser/ui/browser_list_observer.h"
|
| #include "chrome/browser/ui/browser_window.h"
|
| #include "chrome/browser/ui/profile_chooser_constants.h"
|
| #include "components/signin/core/browser/signin_header_helper.h"
|
| @@ -47,7 +48,8 @@ class ProfileChooserView : public content::WebContentsDelegate,
|
| public views::StyledLabelListener,
|
| public views::TextfieldController,
|
| public AvatarMenuObserver,
|
| - public OAuth2TokenService::Observer {
|
| + public OAuth2TokenService::Observer,
|
| + public chrome::BrowserListObserver {
|
| public:
|
| // Shows the bubble if one is not already showing. This allows us to easily
|
| // make a button toggle the bubble on and off when clicked: we unconditionally
|
| @@ -110,6 +112,9 @@ class ProfileChooserView : public content::WebContentsDelegate,
|
| void OnRefreshTokenAvailable(const std::string& account_id) override;
|
| void OnRefreshTokenRevoked(const std::string& account_id) override;
|
|
|
| + // chrome::BrowserListObserver overrides:
|
| + void OnBrowserRemoved(Browser* browser) override;
|
| +
|
| static ProfileChooserView* profile_bubble_;
|
|
|
| // We normally close the bubble any time it becomes inactive but this can lead
|
|
|