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

Unified Diff: components/infobars/core/infobar_delegate.h

Issue 1142153002: Simplify infobar expiry. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Android compile Created 5 years, 7 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: components/infobars/core/infobar_delegate.h
diff --git a/components/infobars/core/infobar_delegate.h b/components/infobars/core/infobar_delegate.h
index bd7455f02198511f521ebff61d928b1ad4a6a0f7..5d5ff375139bb63ce7ccaad844bd65ddb15c591d 100644
--- a/components/infobars/core/infobar_delegate.h
+++ b/components/infobars/core/infobar_delegate.h
@@ -127,24 +127,12 @@ class InfoBarDelegate {
void set_infobar(InfoBar* infobar) { infobar_ = infobar; }
- // Store the unique id for the active entry, to be used later upon navigation
- // to determine if this InfoBarDelegate should be expired.
- void StoreActiveEntryUniqueID();
-
protected:
InfoBarDelegate();
- // Returns true if the navigation is to a new URL or a reload occured.
- virtual bool ShouldExpireInternal(const NavigationDetails& details) const;
-
- int contents_unique_id() const { return contents_unique_id_; }
InfoBar* infobar() { return infobar_; }
private:
- // The unique id of the active NavigationEntry of the WebContents that we were
- // opened for. Used to help expire on navigations.
- int contents_unique_id_;
-
// The InfoBar associated with us.
InfoBar* infobar_;

Powered by Google App Engine
This is Rietveld 408576698