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

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: rebase 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
« no previous file with comments | « chrome/browser/infobars/infobar_service.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..5b58273d5b6b43c8730b4d0a952b175a4d11a196 100644
--- a/chrome/browser/infobars/infobar_service.cc
+++ b/chrome/browser/infobars/infobar_service.cc
@@ -55,6 +55,12 @@ InfoBarService::~InfoBarService() {
ShutDown();
}
+int InfoBarService::GetActiveEntryID() {
+ 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
« no previous file with comments | « chrome/browser/infobars/infobar_service.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698