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

Unified Diff: chrome/browser/google/google_url_tracker_map_entry.cc

Issue 22694006: Infobar system refactor. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years 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_map_entry.cc
===================================================================
--- chrome/browser/google/google_url_tracker_map_entry.cc (revision 238220)
+++ chrome/browser/google/google_url_tracker_map_entry.cc (working copy)
@@ -32,7 +32,7 @@
DCHECK(infobar_delegate_);
DCHECK_EQ(chrome::NOTIFICATION_TAB_CONTENTS_INFOBAR_REMOVED, type);
DCHECK_EQ(infobar_service_, content::Source<InfoBarService>(source).ptr());
- if (content::Details<InfoBar::RemovedDetails>(details)->first ==
+ if (content::Details<InfoBar::RemovedDetails>(details)->first->delegate() ==
infobar_delegate_) {
google_url_tracker_->DeleteMapEntryForService(infobar_service_);
// WARNING: At this point |this| has been deleted!
« no previous file with comments | « chrome/browser/google/google_url_tracker_infobar_delegate.cc ('k') | chrome/browser/google/google_url_tracker_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698