| Index: chrome/browser/ui/website_settings/chooser_bubble_delegate.h
|
| diff --git a/chrome/browser/ui/website_settings/chooser_bubble_delegate.h b/chrome/browser/ui/website_settings/chooser_bubble_delegate.h
|
| index d111f2b382233919513bb39d844545c106322631..6166e56782791361b56c923988b0526f211bb95c 100644
|
| --- a/chrome/browser/ui/website_settings/chooser_bubble_delegate.h
|
| +++ b/chrome/browser/ui/website_settings/chooser_bubble_delegate.h
|
| @@ -11,6 +11,8 @@
|
| #include "base/strings/string16.h"
|
| #include "components/bubble/bubble_delegate.h"
|
|
|
| +class Browser;
|
| +
|
| // Subclass ChooserBubbleDelegate to implement a chooser bubble, which has
|
| // some introductory text and a list of options that users can pick one of.
|
| // Create an instance of your subclass and pass it to
|
| @@ -23,7 +25,7 @@
|
| // into it is not allowed.
|
| class ChooserBubbleDelegate : public BubbleDelegate {
|
| public:
|
| - ChooserBubbleDelegate();
|
| + explicit ChooserBubbleDelegate(Browser* browser);
|
| ~ChooserBubbleDelegate() override;
|
|
|
| // Since the set of options can change while the UI is visible an
|
| @@ -50,6 +52,7 @@ class ChooserBubbleDelegate : public BubbleDelegate {
|
|
|
| // BubbleDelegate:
|
| std::string GetName() const override;
|
| + scoped_ptr<BubbleUi> BuildBubbleUi() override;
|
|
|
| // The set of options users can pick from. For example, it can be
|
| // USB/Bluetooth devices names which are listed in the chooser bubble
|
| @@ -70,6 +73,7 @@ class ChooserBubbleDelegate : public BubbleDelegate {
|
| Observer* observer() const { return observer_; }
|
|
|
| private:
|
| + Browser* browser_;
|
| Observer* observer_ = nullptr;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(ChooserBubbleDelegate);
|
|
|