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

Unified Diff: chrome/browser/infobars/infobar_tab_helper.cc

Issue 9018016: Revert r115276, it broke PanelDownloadTest.Download in interactive_ui_tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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
« no previous file with comments | « chrome/browser/infobars/infobar_delegate.cc ('k') | chrome/browser/instant/instant_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/infobars/infobar_tab_helper.cc
diff --git a/chrome/browser/infobars/infobar_tab_helper.cc b/chrome/browser/infobars/infobar_tab_helper.cc
index d3baf4ae21cf015969fa9931724d1413d507d6e5..000bfb45a9e26d47a89fc0fc923007a3c59f14e2 100644
--- a/chrome/browser/infobars/infobar_tab_helper.cc
+++ b/chrome/browser/infobars/infobar_tab_helper.cc
@@ -55,8 +55,7 @@ void InfoBarTabHelper::AddInfoBar(InfoBarDelegate* delegate) {
if (infobars_.size() == 1) {
registrar_.Add(
this, content::NOTIFICATION_NAV_ENTRY_COMMITTED,
- content::Source<NavigationController>(
- &tab_contents()->GetController()));
+ content::Source<NavigationController>(&tab_contents()->controller()));
}
}
@@ -119,10 +118,8 @@ void InfoBarTabHelper::RemoveInfoBarInternal(InfoBarDelegate* delegate,
infobars_.erase(infobars_.begin() + i);
// Remove ourselves as an observer if we are tracking no more InfoBars.
if (infobars_.empty()) {
- registrar_.Remove(
- this, content::NOTIFICATION_NAV_ENTRY_COMMITTED,
- content::Source<NavigationController>(
- &tab_contents()->GetController()));
+ registrar_.Remove(this, content::NOTIFICATION_NAV_ENTRY_COMMITTED,
+ content::Source<NavigationController>(&tab_contents()->controller()));
}
}
@@ -179,7 +176,7 @@ void InfoBarTabHelper::Observe(int type,
const content::NotificationDetails& details) {
switch (type) {
case content::NOTIFICATION_NAV_ENTRY_COMMITTED: {
- DCHECK(&tab_contents()->GetController() ==
+ DCHECK(&tab_contents()->controller() ==
content::Source<NavigationController>(source).ptr());
content::LoadCommittedDetails& committed_details =
« no previous file with comments | « chrome/browser/infobars/infobar_delegate.cc ('k') | chrome/browser/instant/instant_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698