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

Unified Diff: chrome/browser/web_applications/web_app_unittest.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
Index: chrome/browser/web_applications/web_app_unittest.cc
diff --git a/chrome/browser/web_applications/web_app_unittest.cc b/chrome/browser/web_applications/web_app_unittest.cc
index 38ef8961e2af8975cb8685870d2dad1db28bb935..2cf437ba0069a6f8006342fb7931e24b39bfeec9 100644
--- a/chrome/browser/web_applications/web_app_unittest.cc
+++ b/chrome/browser/web_applications/web_app_unittest.cc
@@ -42,6 +42,8 @@ TEST_F(WebApplicationTest, GetShortcutInfoForTab) {
web_app_info.description = description;
web_app_info.app_url = url;
+ content::RenderFrameHostTester::For(main_rfh())
+ ->InitializeRenderFrameIfNeeded();
RenderViewHostTester::TestOnMessageReceived(
rvh(), ChromeViewHostMsg_DidGetWebApplicationInfo(0, web_app_info));
scoped_ptr<web_app::ShortcutInfo> info =

Powered by Google App Engine
This is Rietveld 408576698