Chromium Code Reviews| 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 |