| Index: chrome/browser/rlz/rlz_unittest.cc
|
| diff --git a/chrome/browser/rlz/rlz_unittest.cc b/chrome/browser/rlz/rlz_unittest.cc
|
| index 5dac40bdd9a18154877fbfcc741a1c45ce50e9fc..a1fe65a05aa9e063f0c391972f77a0d51ea23b55 100644
|
| --- a/chrome/browser/rlz/rlz_unittest.cc
|
| +++ b/chrome/browser/rlz/rlz_unittest.cc
|
| @@ -271,6 +271,10 @@ void RlzLibTest::SimulateHomepageUsage() {
|
| content::RenderFrameHostTester* rfht =
|
| content::RenderFrameHostTester::For(main_rfh());
|
|
|
| + // Ensure the RenderFrame is initialized before simulating events coming from
|
| + // it.
|
| + rfht->InitializeRenderFrameIfNeeded();
|
| +
|
| // Simulate a navigation to homepage first.
|
| rfht->SendNavigateWithTransition(
|
| 0, 0, true, home_url, ui::PAGE_TRANSITION_HOME_PAGE);
|
|
|