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

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

Issue 228293004: InfoBarService inherits from InfoBarManager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: whitespace 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 11373e03ae44643f943397c5e422473d5ed28caa..07304b8f07fca01ab159e7320b3130d25e9fe62c 100644
--- a/chrome/browser/managed_mode/managed_mode_navigation_observer.cc
+++ b/chrome/browser/managed_mode/managed_mode_navigation_observer.cc
@@ -13,7 +13,6 @@
#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,9 +187,7 @@ void ManagedModeNavigationObserver::ProvisionalChangeToMainFrameUrl(
return;
// If we shouldn't have a warn infobar remove it here.
- InfoBarManager* infobar_manager =
- InfoBarService::FromWebContents(web_contents())->infobar_manager();
- infobar_manager->RemoveInfoBar(warn_infobar_);
+ InfoBarService::FromWebContents(web_contents())->RemoveInfoBar(warn_infobar_);
warn_infobar_ = NULL;
}

Powered by Google App Engine
This is Rietveld 408576698