X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fchrome%2Fbrowser%2Fui%2Fstartup%2Fstartup_browser_creator_browsertest.cc;h=4cd3edcd5cd98f25fce5cd5d1b6a9fbee3cfb380;hb=004985e17e624662a4c85c76a7654039dc83f028;hp=884a70964339ad76ea43798ed06bf9e18b07f1a4;hpb=2f108dbacb161091e42a3479f4e171339b7e7623;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/chrome/browser/ui/startup/startup_browser_creator_browsertest.cc b/src/chrome/browser/ui/startup/startup_browser_creator_browsertest.cc index 884a709..4cd3edc 100644 --- a/src/chrome/browser/ui/startup/startup_browser_creator_browsertest.cc +++ b/src/chrome/browser/ui/startup/startup_browser_creator_browsertest.cc @@ -938,8 +938,9 @@ IN_PROC_BROWSER_TEST_F(StartupBrowserCreatorTest, ProfilesLaunchedAfterCrash) { ASSERT_EQ(1, tab_strip->count()); content::WebContents* web_contents = tab_strip->GetWebContentsAt(0); EXPECT_EQ(GURL(chrome::kChromeUINewTabURL), web_contents->GetURL()); - EXPECT_EQ(1U, - InfoBarService::FromWebContents(web_contents)->infobar_count()); + InfoBarService* infobar_service = + InfoBarService::FromWebContents(web_contents); + EXPECT_EQ(1U, infobar_service->infobar_count()); // The profile which normally opens last open pages displays the new tab page. ASSERT_EQ(1u, chrome::GetBrowserCount(profile_last, @@ -950,8 +951,8 @@ IN_PROC_BROWSER_TEST_F(StartupBrowserCreatorTest, ProfilesLaunchedAfterCrash) { ASSERT_EQ(1, tab_strip->count()); web_contents = tab_strip->GetWebContentsAt(0); EXPECT_EQ(GURL(chrome::kChromeUINewTabURL), web_contents->GetURL()); - EXPECT_EQ(1U, - InfoBarService::FromWebContents(web_contents)->infobar_count()); + infobar_service = InfoBarService::FromWebContents(web_contents); + EXPECT_EQ(1U, infobar_service->infobar_count()); // The profile which normally opens URLs displays the new tab page. ASSERT_EQ(1u, chrome::GetBrowserCount(profile_urls, @@ -962,8 +963,8 @@ IN_PROC_BROWSER_TEST_F(StartupBrowserCreatorTest, ProfilesLaunchedAfterCrash) { ASSERT_EQ(1, tab_strip->count()); web_contents = tab_strip->GetWebContentsAt(0); EXPECT_EQ(GURL(chrome::kChromeUINewTabURL), web_contents->GetURL()); - EXPECT_EQ(1U, - InfoBarService::FromWebContents(web_contents)->infobar_count()); + infobar_service = InfoBarService::FromWebContents(web_contents); + EXPECT_EQ(1U, infobar_service->infobar_count()); } class ManagedModeBrowserCreatorTest : public InProcessBrowserTest {