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

Unified Diff: chrome/browser/captive_portal/captive_portal_tab_helper_unittest.cc

Issue 1159143008: Fix wrong initialization of renderer_initiated_creation parameter. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressing nick's comments Created 5 years, 6 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/browser/captive_portal/captive_portal_tab_helper_unittest.cc
diff --git a/chrome/browser/captive_portal/captive_portal_tab_helper_unittest.cc b/chrome/browser/captive_portal/captive_portal_tab_helper_unittest.cc
index ce0c9c755cf48f4c2b7b64af1cfaca3f63a23740..f71ccff602d456ceec8eedd2470a1cf37f49f16a 100644
--- a/chrome/browser/captive_portal/captive_portal_tab_helper_unittest.cc
+++ b/chrome/browser/captive_portal/captive_portal_tab_helper_unittest.cc
@@ -76,6 +76,10 @@ class CaptivePortalTabHelperTest : public ChromeRenderViewHostTestHarness {
ChromeRenderViewHostTestHarness::SetUp();
web_contents1_.reset(CreateTestWebContents());
web_contents2_.reset(CreateTestWebContents());
+ content::RenderFrameHostTester::For(main_render_frame1())
+ ->InitializeRenderFrameIfNeeded();
+ content::RenderFrameHostTester::For(main_render_frame2())
+ ->InitializeRenderFrameIfNeeded();
mmenke 2015/06/08 16:09:49 Need to include the header for RenderFrameHostTest
mmenke 2015/06/08 16:09:50 Why are these needed? What do they do? I assume
lfg 2015/06/08 17:04:01 The header is already included because of the inhe
lfg 2015/06/08 17:04:01 There are a few reasons for this, the main one is
mmenke 2015/06/08 17:15:06 Could you add some sort of comment here? It's nei
mmenke 2015/06/08 17:15:06 I'd prefer it be included explicitly - same goes f
lfg 2015/06/08 18:25:51 Done.
lfg 2015/06/08 18:25:51 Done.
}
void TearDown() override {

Powered by Google App Engine
This is Rietveld 408576698