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

Unified Diff: chrome/test/gpu/webgl_infobar_browsertest.cc

Issue 14241006: Eliminate InfoBarTabHelper. Make InfoBarService a concrete class. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 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
« no previous file with comments | « chrome/chrome_browser.gypi ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/gpu/webgl_infobar_browsertest.cc
===================================================================
--- chrome/test/gpu/webgl_infobar_browsertest.cc (revision 195254)
+++ chrome/test/gpu/webgl_infobar_browsertest.cc (working copy)
@@ -87,7 +87,7 @@
EXPECT_EQ(1u,
InfoBarService::FromWebContents(
browser()->tab_strip_model()->GetActiveWebContents())->
- GetInfoBarCount());
+ infobar_count());
}
IN_PROC_BROWSER_TEST_F(WebGLInfobarTest, ContextLossInfobarReload) {
@@ -118,13 +118,10 @@
content::NotificationService::AllSources());
SimulateGPUCrash(browser());
infobar_added.Wait();
- EXPECT_EQ(1u,
- InfoBarService::FromWebContents(
- browser()->tab_strip_model()->GetActiveWebContents())->
- GetInfoBarCount());
- InfoBarDelegate* delegate = InfoBarService::FromWebContents(
- browser()->tab_strip_model()->GetActiveWebContents())->
- GetInfoBarDelegateAt(0);
+ InfoBarService* infobar_service = InfoBarService::FromWebContents(
+ browser()->tab_strip_model()->GetActiveWebContents());
+ EXPECT_EQ(1u, infobar_service->infobar_count());
+ InfoBarDelegate* delegate = infobar_service->infobar_at(0);
ASSERT_TRUE(delegate);
ASSERT_TRUE(delegate->AsThreeDAPIInfoBarDelegate());
delegate->AsConfirmInfoBarDelegate()->Cancel();
« no previous file with comments | « chrome/chrome_browser.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698