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

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

Issue 230853002: Remove remaining dependencies of infobars on content/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: use virtual method Created 6 years, 8 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/infobars/infobar_service.cc
diff --git a/chrome/browser/infobars/infobar_service.cc b/chrome/browser/infobars/infobar_service.cc
index a6a7d94b1f5189808bc6cf5291b177ee18878a9e..a9322286efb4d277c376be0ed6d365186c946df4 100644
--- a/chrome/browser/infobars/infobar_service.cc
+++ b/chrome/browser/infobars/infobar_service.cc
@@ -55,6 +55,14 @@ InfoBarService::~InfoBarService() {
ShutDown();
}
+int InfoBarService::GetActiveEntryID() {
+ if (!web_contents())
Peter Kasting 2014/04/10 00:17:20 Again, I don't think this conditional is supposed
droger 2014/04/10 17:18:07 Done.
+ return 0;
+ content::NavigationEntry* active_entry =
+ web_contents()->GetController().GetActiveEntry();
+ return active_entry ? active_entry->GetUniqueID() : 0;
+}
+
void InfoBarService::NotifyInfoBarAdded(InfoBar* infobar) {
InfoBarManager::NotifyInfoBarAdded(infobar);
// TODO(droger): Remove the notifications and have listeners change to be
« chrome/browser/infobars/infobar_delegate.cc ('K') | « chrome/browser/infobars/infobar_service.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698