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

Unified Diff: chrome/test/gpu/webgl_infobar_browsertest.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/gpu/webgl_infobar_browsertest.cc
diff --git a/chrome/test/gpu/webgl_infobar_browsertest.cc b/chrome/test/gpu/webgl_infobar_browsertest.cc
index 9d376d3ea8d584fffa9d3c0419e67aae1aec1c91..d30efe59531ba18f99ed0b61522b0d3847e3a9f1 100644
--- a/chrome/test/gpu/webgl_infobar_browsertest.cc
+++ b/chrome/test/gpu/webgl_infobar_browsertest.cc
@@ -8,7 +8,6 @@
#include "chrome/browser/chrome_notification_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/ui/browser.h"
#include "chrome/browser/ui/browser_commands.h"
@@ -92,7 +91,7 @@ IN_PROC_BROWSER_TEST_F(WebGLInfoBarTest, DISABLED_ContextLossRaisesInfoBar) {
EXPECT_EQ(1u,
InfoBarService::FromWebContents(
browser()->tab_strip_model()->GetActiveWebContents())
- ->infobar_manager()->infobar_count());
+ ->infobar_count());
Peter Kasting 2014/04/10 00:08:59 Nit: Place arrow on end of previous line
}
// This test is flaky. http://crbug.com/324555
@@ -132,9 +131,8 @@ IN_PROC_BROWSER_TEST_F(WebGLInfoBarTest, DISABLED_ContextLossInfoBarReload) {
infobar_added.Wait();
InfoBarService* infobar_service = InfoBarService::FromWebContents(
browser()->tab_strip_model()->GetActiveWebContents());
- ASSERT_EQ(1u, infobar_service->infobar_manager()->infobar_count());
- InfoBarDelegate* delegate =
- infobar_service->infobar_manager()->infobar_at(0)->delegate();
+ ASSERT_EQ(1u, infobar_service->infobar_count());
+ InfoBarDelegate* delegate = infobar_service->infobar_at(0)->delegate();
ASSERT_EQ(IDR_INFOBAR_3D_BLOCKED, delegate->GetIconID());
delegate->AsConfirmInfoBarDelegate()->Cancel();

Powered by Google App Engine
This is Rietveld 408576698