Index: chrome/browser/previews/previews_infobar_delegate.h |
diff --git a/chrome/browser/previews/previews_infobar_delegate.h b/chrome/browser/previews/previews_infobar_delegate.h |
index f362be5c2a58d71a574dda0d2228860e1cc085b7..3f57d0849cbc5ec480a0e65761be4c626c3408d0 100644 |
--- a/chrome/browser/previews/previews_infobar_delegate.h |
+++ b/chrome/browser/previews/previews_infobar_delegate.h |
@@ -51,6 +51,12 @@ class PreviewsInfoBarDelegate : public ConfirmInfoBarDelegate { |
bool is_data_saver_user, |
const OnDismissPreviewsInfobarCallback& on_dismiss_callback); |
+ // ConfirmInfoBarDelegate overrides: |
+ base::string16 GetMessageText() const override; |
+ base::string16 GetLinkText() const override; |
+ |
+ base::string16 GetTimestampText() const; |
+ |
private: |
PreviewsInfoBarDelegate( |
content::WebContents* web_contents, |
@@ -58,14 +64,19 @@ class PreviewsInfoBarDelegate : public ConfirmInfoBarDelegate { |
bool is_data_saver_user, |
const OnDismissPreviewsInfobarCallback& on_dismiss_callback); |
+#if defined(OS_ANDROID) |
+ // Returns a Previews infobar that owns |delegate|. |
+ static std::unique_ptr<infobars::InfoBar> CreateInfoBar( |
RyanSturm
2017/05/08 20:48:17
Why is this declared here and defined in chrome/b
megjablon
2017/05/08 22:49:19
This is the pattern used by infobars and infobar d
|
+ infobars::InfoBarManager* infobar_manager, |
+ std::unique_ptr<PreviewsInfoBarDelegate> delegate); |
+#endif |
+ |
// ConfirmInfoBarDelegate overrides: |
infobars::InfoBarDelegate::InfoBarIdentifier GetIdentifier() const override; |
int GetIconId() const override; |
bool ShouldExpire(const NavigationDetails& details) const override; |
void InfoBarDismissed() override; |
- base::string16 GetMessageText() const override; |
int GetButtons() const override; |
- base::string16 GetLinkText() const override; |
bool LinkClicked(WindowOpenDisposition disposition) override; |
PreviewsInfoBarType infobar_type_; |