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

Unified Diff: content/browser/child_process_security_policy_browsertest.cc

Issue 10106022: TabContents -> WebContentsImpl, part 19. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 8 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: content/browser/child_process_security_policy_browsertest.cc
diff --git a/content/browser/child_process_security_policy_browsertest.cc b/content/browser/child_process_security_policy_browsertest.cc
index d5848b139f343e8e3bd840a01ce0894ce3672ec7..a6437ddb1f914233fef5fdb65b7cc495bd917181 100644
--- a/content/browser/child_process_security_policy_browsertest.cc
+++ b/content/browser/child_process_security_policy_browsertest.cc
@@ -46,13 +46,13 @@ IN_PROC_BROWSER_TEST_F(ChildProcessSecurityPolicyInProcessBrowserTest, NoLeak) {
ChildProcessSecurityPolicyImpl::GetInstance()->security_state_.size(),
1U);
- WebContents* tab = browser()->GetWebContentsAt(0);
- ASSERT_TRUE(tab != NULL);
- base::KillProcess(tab->GetRenderProcessHost()->GetHandle(),
+ WebContents* web_contents = browser()->GetWebContentsAt(0);
+ ASSERT_TRUE(web_contents != NULL);
+ base::KillProcess(web_contents->GetRenderProcessHost()->GetHandle(),
content::RESULT_CODE_KILLED, true);
- tab->GetController().Reload(true);
+ web_contents->GetController().Reload(true);
EXPECT_EQ(
- ChildProcessSecurityPolicyImpl::GetInstance()->security_state_.size(),
- 1U);
+ 1U,
+ ChildProcessSecurityPolicyImpl::GetInstance()->security_state_.size());
}

Powered by Google App Engine
This is Rietveld 408576698