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

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

Issue 211273007: Split InfoBarService core code into InfoBarManager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase + comments Created 6 years, 9 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 bd06cafedd2b045038b760ddc2abf159ce568eb8..ceddba64b1879de04938e76669e293c8da427ad4 100644
--- a/chrome/browser/managed_mode/managed_mode_navigation_observer.cc
+++ b/chrome/browser/managed_mode/managed_mode_navigation_observer.cc
@@ -13,6 +13,7 @@
#include "chrome/browser/history/history_types.h"
#include "chrome/browser/infobars/confirm_infobar_delegate.h"
#include "chrome/browser/infobars/infobar.h"
+#include "chrome/browser/infobars/infobar_manager.h"
#include "chrome/browser/infobars/infobar_service.h"
#include "chrome/browser/managed_mode/managed_mode_interstitial.h"
#include "chrome/browser/managed_mode/managed_mode_resource_throttle.h"
@@ -188,7 +189,9 @@ void ManagedModeNavigationObserver::ProvisionalChangeToMainFrameUrl(
return;
// If we shouldn't have a warn infobar remove it here.
- InfoBarService::FromWebContents(web_contents())->RemoveInfoBar(warn_infobar_);
+ InfoBarManager* infobar_manager =
+ InfoBarService::FromWebContents(web_contents())->infobar_manager();
+ infobar_manager->RemoveInfoBar(warn_infobar_);
warn_infobar_ = NULL;
}

Powered by Google App Engine
This is Rietveld 408576698