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

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: . 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
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..e795f17ee7a6f897b40237ff8dcc664b8b3bf607 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,7 +90,7 @@ TranslateInfoBarDelegate* InfoBarDelegate::AsTranslateInfoBarDelegate() {
return NULL;
}
-InfoBarDelegate::InfoBarDelegate(InfoBarTabHelper* infobar_helper)
+InfoBarDelegate::InfoBarDelegate(InfoBarTabService* infobar_helper)
erikwright (departed) 2012/08/16 17:25:38 rename to infobar_service?
Jói 2012/08/17 15:51:24 Done.
: contents_unique_id_(0),
owner_(infobar_helper) {
if (infobar_helper)
@@ -98,9 +98,9 @@ InfoBarDelegate::InfoBarDelegate(InfoBarTabHelper* infobar_helper)
}
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;
}

Powered by Google App Engine
This is Rietveld 408576698