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

Unified Diff: chrome/test/ppapi/ppapi_test.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/test/ppapi/ppapi_test.cc
diff --git a/chrome/test/ppapi/ppapi_test.cc b/chrome/test/ppapi/ppapi_test.cc
index 99d233dc06eead683e4ed9c3a4635ecf1bdcdbbd..8e22b24f069ee05e61a6acfe171bc0fa2f02cfc0 100644
--- a/chrome/test/ppapi/ppapi_test.cc
+++ b/chrome/test/ppapi/ppapi_test.cc
@@ -13,7 +13,6 @@
#include "chrome/browser/content_settings/host_content_settings_map.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/profiles/profile.h"
#include "chrome/browser/ui/browser.h"
@@ -112,13 +111,12 @@ void PPAPITestBase::InfoBarObserver::VerifyInfoBarState() {
InfoBarService::FromWebContents(web_contents);
ASSERT_TRUE(infobar_service != NULL);
- InfoBarManager* infobar_manager = infobar_service->infobar_manager();
- EXPECT_EQ(expecting_infobar_ ? 1U : 0U, infobar_manager->infobar_count());
+ EXPECT_EQ(expecting_infobar_ ? 1U : 0U, infobar_service->infobar_count());
if (!expecting_infobar_)
return;
expecting_infobar_ = false;
- InfoBar* infobar = infobar_manager->infobar_at(0);
+ InfoBar* infobar = infobar_service->infobar_at(0);
ConfirmInfoBarDelegate* delegate =
infobar->delegate()->AsConfirmInfoBarDelegate();
ASSERT_TRUE(delegate != NULL);
@@ -127,7 +125,7 @@ void PPAPITestBase::InfoBarObserver::VerifyInfoBarState() {
else
delegate->Cancel();
- infobar_manager->RemoveInfoBar(infobar);
+ infobar_service->RemoveInfoBar(infobar);
}
PPAPITestBase::PPAPITestBase() {
« chrome/test/gpu/webgl_infobar_browsertest.cc ('K') | « chrome/test/gpu/webgl_infobar_browsertest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698