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

Unified Diff: chrome/browser/geolocation/geolocation_infobar_delegate.cc

Issue 14241006: Eliminate InfoBarTabHelper. Make InfoBarService a concrete class. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 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/geolocation/geolocation_infobar_delegate.cc
===================================================================
--- chrome/browser/geolocation/geolocation_infobar_delegate.cc (revision 195254)
+++ chrome/browser/geolocation/geolocation_infobar_delegate.cc (working copy)
@@ -49,7 +49,7 @@
requesting_frame_(requesting_frame),
display_languages_(display_languages) {
const content::NavigationEntry* committed_entry = infobar_service->
- GetWebContents()->GetController().GetLastCommittedEntry();
+ web_contents()->GetController().GetLastCommittedEntry();
contents_unique_id_ = committed_entry ? committed_entry->GetUniqueID() : 0;
}
@@ -87,7 +87,7 @@
void GeolocationInfoBarDelegate::SetPermission(bool update_content_setting,
bool allowed) {
controller_->OnPermissionSet(id_, requesting_frame_,
- owner()->GetWebContents()->GetURL(),
+ owner()->web_contents()->GetURL(),
update_content_setting, allowed);
}
@@ -119,6 +119,6 @@
content::Referrer(),
(disposition == CURRENT_TAB) ? NEW_FOREGROUND_TAB : disposition,
content::PAGE_TRANSITION_LINK, false);
- owner()->GetWebContents()->OpenURL(params);
+ owner()->web_contents()->OpenURL(params);
return false; // Do not dismiss the info bar.
}
« no previous file with comments | « chrome/browser/geolocation/geolocation_browsertest.cc ('k') | chrome/browser/google/google_url_tracker_infobar_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698