Index: chrome/browser/extensions/api/declarative_content/declarative_content_condition_tracker_test.cc |
diff --git a/chrome/browser/extensions/api/declarative_content/declarative_content_condition_tracker_test.cc b/chrome/browser/extensions/api/declarative_content/declarative_content_condition_tracker_test.cc |
index 9ad530d5cad29e7ff349991531dcd69d047906c2..811af350ee2ca9c9e1eda05cf4316f709198ccb2 100644 |
--- a/chrome/browser/extensions/api/declarative_content/declarative_content_condition_tracker_test.cc |
+++ b/chrome/browser/extensions/api/declarative_content/declarative_content_condition_tracker_test.cc |
@@ -28,9 +28,12 @@ DeclarativeContentConditionTrackerTest:: |
scoped_ptr<content::WebContents> |
DeclarativeContentConditionTrackerTest::MakeTab() { |
- return make_scoped_ptr(content::WebContentsTester::CreateTestWebContents( |
- profile_.get(), |
- nullptr)); |
+ scoped_ptr<content::WebContents> tab( |
+ content::WebContentsTester::CreateTestWebContents(profile_.get(), |
+ nullptr)); |
+ content::RenderFrameHostTester::For(tab->GetMainFrame()) |
+ ->InitializeRenderFrameIfNeeded(); |
+ return tab; |
} |
content::MockRenderProcessHost* |