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 70438618e6f4762c2038a099f1374f517e32420c..fb5a1cbeb2642f9dfab262c4e7e28430eba72be4 100644 |
--- a/chrome/browser/web_applications/web_app_unittest.cc |
+++ b/chrome/browser/web_applications/web_app_unittest.cc |
@@ -46,8 +46,9 @@ TEST_F(WebApplicationTest, GetShortcutInfoForTab) { |
content::RenderFrameHostTester::For(main_rfh()) |
->InitializeRenderFrameIfNeeded(); |
- RenderViewHostTester::TestOnMessageReceived( |
- rvh(), ChromeViewHostMsg_DidGetWebApplicationInfo(0, web_app_info)); |
+ content::RenderFrameHostTester::TestOnMessageReceived( |
+ rvh()->GetMainFrame(), |
alexmos
2017/06/20 22:44:11
nit: can shorten to main_rfh() (like above)
Łukasz Anforowicz
2017/06/20 23:19:15
Done.
|
+ ChromeFrameHostMsg_DidGetWebApplicationInfo(0, web_app_info)); |
std::unique_ptr<web_app::ShortcutInfo> info = |
web_app::GetShortcutInfoForTab(web_contents()); |