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

Unified Diff: chrome/browser/managed_mode/managed_mode_navigation_observer.cc

Issue 230453004: Remove InfoBarDelegate::web_contents() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix compile 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
Index: chrome/browser/managed_mode/managed_mode_navigation_observer.cc
diff --git a/chrome/browser/managed_mode/managed_mode_navigation_observer.cc b/chrome/browser/managed_mode/managed_mode_navigation_observer.cc
index 07304b8f07fca01ab159e7320b3130d25e9fe62c..ac455580302bfe7914eafff20890ab49dc59777f 100644
--- a/chrome/browser/managed_mode/managed_mode_navigation_observer.cc
+++ b/chrome/browser/managed_mode/managed_mode_navigation_observer.cc
@@ -122,8 +122,10 @@ bool ManagedModeWarningInfoBarDelegate::ShouldExpire(
}
void ManagedModeWarningInfoBarDelegate::InfoBarDismissed() {
+ content::WebContents* web_contents =
+ InfoBarService::WebContentsFromInfoBar(infobar());
ManagedModeNavigationObserver::FromWebContents(
- web_contents())->WarnInfoBarDismissed();
+ web_contents)->WarnInfoBarDismissed();
}
base::string16 ManagedModeWarningInfoBarDelegate::GetMessageText() const {
@@ -146,7 +148,7 @@ bool ManagedModeWarningInfoBarDelegate::Accept() {
// http://crbug.com/313377
NOTIMPLEMENTED();
#else
- GoBackToSafety(web_contents());
+ GoBackToSafety(InfoBarService::WebContentsFromInfoBar(infobar()));
#endif
return false;
« no previous file with comments | « chrome/browser/infobars/insecure_content_infobar_delegate.cc ('k') | chrome/browser/media/media_stream_infobar_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698