Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2022)

Unified Diff: chrome/browser/google/google_url_tracker_infobar_delegate.h

Issue 190063006: Infobar Componentization Proof of Concept (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: minor fixes Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/google/google_url_tracker_infobar_delegate.h
diff --git a/chrome/browser/google/google_url_tracker_infobar_delegate.h b/chrome/browser/google/google_url_tracker_infobar_delegate.h
index cbeab033464190bf6be651d114107bdd8505c966..9024aa4ddc605281f8d39d4474959ecb8fd9ee64 100644
--- a/chrome/browser/google/google_url_tracker_infobar_delegate.h
+++ b/chrome/browser/google/google_url_tracker_infobar_delegate.h
@@ -5,14 +5,15 @@
#ifndef CHROME_BROWSER_GOOGLE_GOOGLE_URL_TRACKER_INFOBAR_DELEGATE_H_
#define CHROME_BROWSER_GOOGLE_GOOGLE_URL_TRACKER_INFOBAR_DELEGATE_H_
-#include "chrome/browser/infobars/confirm_infobar_delegate.h"
+#include "chrome/browser/infobars/content_confirm_infobar_delegate.h"
#include "url/gurl.h"
class GoogleURLTracker;
+class InfoBarService;
// This infobar is shown by the GoogleURLTracker when the Google base URL has
// changed.
-class GoogleURLTrackerInfoBarDelegate : public ConfirmInfoBarDelegate {
+class GoogleURLTrackerInfoBarDelegate : public ContentConfirmInfoBarDelegate {
public:
// Creates a Google URL tracker infobar and delegate and adds the infobar to
// |infobar_service|. Returns the infobar if it was successfully added.
@@ -35,7 +36,8 @@ class GoogleURLTrackerInfoBarDelegate : public ConfirmInfoBarDelegate {
virtual void Close(bool redo_search);
protected:
- GoogleURLTrackerInfoBarDelegate(GoogleURLTracker* google_url_tracker,
+ GoogleURLTrackerInfoBarDelegate(content::WebContents* web_contents,
+ GoogleURLTracker* google_url_tracker,
const GURL& search_url);
virtual ~GoogleURLTrackerInfoBarDelegate();
@@ -45,8 +47,8 @@ class GoogleURLTrackerInfoBarDelegate : public ConfirmInfoBarDelegate {
virtual base::string16 GetButtonLabel(InfoBarButton button) const OVERRIDE;
virtual base::string16 GetLinkText() const OVERRIDE;
virtual bool LinkClicked(WindowOpenDisposition disposition) OVERRIDE;
- virtual bool ShouldExpireInternal(
- const content::LoadCommittedDetails& details) const OVERRIDE;
+ virtual bool ShouldExpireInternal(const NavigationDetails& details) const
+ OVERRIDE;
GoogleURLTracker* google_url_tracker_;
GURL search_url_;

Powered by Google App Engine
This is Rietveld 408576698