Index: chrome/browser/ui/content_settings/content_setting_bubble_model.h |
diff --git a/chrome/browser/ui/content_settings/content_setting_bubble_model.h b/chrome/browser/ui/content_settings/content_setting_bubble_model.h |
index a31abbad68067eb2ff4d7ddaaeb1e981fca92202..ba4c1e718f6e77160cc907d3a46257061479355b 100644 |
--- a/chrome/browser/ui/content_settings/content_setting_bubble_model.h |
+++ b/chrome/browser/ui/content_settings/content_setting_bubble_model.h |
@@ -25,6 +25,10 @@ |
#include "ui/gfx/image/image.h" |
#include "url/gurl.h" |
+#if defined(OS_MACOSX) |
+class LocationBarDecoration; |
+#endif |
+ |
class ContentSettingBubbleModelDelegate; |
class Profile; |
class ProtocolHandlerRegistry; |
@@ -189,6 +193,14 @@ class ContentSettingBubbleModel : public content::NotificationObserver { |
rappor_service_ = rappor_service; |
} |
+#if defined(OS_MACOSX) |
+ LocationBarDecoration* decoration() const { return decoration_; } |
+ |
+ void set_decoration(LocationBarDecoration* decoration) { |
+ decoration_ = decoration; |
+ } |
+#endif |
+ |
static const int kAllowButtonIndex; |
protected: |
@@ -256,6 +268,10 @@ class ContentSettingBubbleModel : public content::NotificationObserver { |
// The service used to record Rappor metrics. Can be set for testing. |
rappor::RapporServiceImpl* rappor_service_; |
+#if defined(OS_MACOSX) |
+ // The omnibox decoration that the bubble is anchored to. |
+ LocationBarDecoration* decoration_ = nullptr; |
+#endif |
DISALLOW_COPY_AND_ASSIGN(ContentSettingBubbleModel); |
}; |