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..f43383433fbf9747e3568ecfb36d28614edb53f7 100644 |
--- a/chrome/browser/previews/previews_infobar_delegate.h |
+++ b/chrome/browser/previews/previews_infobar_delegate.h |
@@ -43,6 +43,8 @@ class PreviewsInfoBarDelegate : public ConfirmInfoBarDelegate { |
~PreviewsInfoBarDelegate() override; |
+ PreviewsInfoBarDelegate* AsPreviewsInfoBarDelegate() override; |
+ |
// Creates a preview infobar and corresponding delegate and adds the infobar |
// to InfoBarService. |
static void Create( |
@@ -51,6 +53,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, |
@@ -63,9 +71,7 @@ class PreviewsInfoBarDelegate : public ConfirmInfoBarDelegate { |
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_; |