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

Unified Diff: chrome/browser/extensions/api/declarative_content/declarative_content_condition_tracker_test.cc

Issue 1534933002: Don't process messages sent to dead routing ids. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More unittest fixes. Created 4 years, 10 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 | « no previous file | chrome/browser/web_applications/web_app_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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*
« no previous file with comments | « no previous file | chrome/browser/web_applications/web_app_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698