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

Unified Diff: chrome/browser/api/infobars/infobar_delegate.cc

Issue 10830353: Introduce InfoBarTabService API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Respond to review comments, merge to LKGR Created 8 years, 4 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/api/infobars/infobar_delegate.h ('k') | chrome/browser/api/infobars/infobar_tab_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/api/infobars/infobar_delegate.cc
diff --git a/chrome/browser/api/infobars/infobar_delegate.cc b/chrome/browser/api/infobars/infobar_delegate.cc
index 69f66251c316d26ef9e7788fa7a71a03644ee291..fa401ac5f06bf1b1e694dd9830da8ca3474fdf4b 100644
--- a/chrome/browser/api/infobars/infobar_delegate.cc
+++ b/chrome/browser/api/infobars/infobar_delegate.cc
@@ -6,7 +6,7 @@
#include "base/logging.h"
#include "build/build_config.h"
-#include "chrome/browser/infobars/infobar_tab_helper.h"
+#include "chrome/browser/api/infobars/infobar_tab_service.h"
#include "content/public/browser/navigation_controller.h"
#include "content/public/browser/navigation_details.h"
#include "content/public/browser/navigation_entry.h"
@@ -90,17 +90,17 @@ TranslateInfoBarDelegate* InfoBarDelegate::AsTranslateInfoBarDelegate() {
return NULL;
}
-InfoBarDelegate::InfoBarDelegate(InfoBarTabHelper* infobar_helper)
+InfoBarDelegate::InfoBarDelegate(InfoBarTabService* infobar_service)
: contents_unique_id_(0),
- owner_(infobar_helper) {
- if (infobar_helper)
- StoreActiveEntryUniqueID(infobar_helper);
+ owner_(infobar_service) {
+ if (infobar_service)
+ StoreActiveEntryUniqueID(infobar_service);
}
void InfoBarDelegate::StoreActiveEntryUniqueID(
- InfoBarTabHelper* infobar_helper) {
+ InfoBarTabService* infobar_service) {
NavigationEntry* active_entry =
- infobar_helper->web_contents()->GetController().GetActiveEntry();
+ infobar_service->GetWebContents()->GetController().GetActiveEntry();
contents_unique_id_ = active_entry ? active_entry->GetUniqueID() : 0;
}
« no previous file with comments | « chrome/browser/api/infobars/infobar_delegate.h ('k') | chrome/browser/api/infobars/infobar_tab_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698