| Index: content/browser/web_contents/web_contents_impl_unittest.cc
|
| diff --git a/content/browser/web_contents/web_contents_impl_unittest.cc b/content/browser/web_contents/web_contents_impl_unittest.cc
|
| index 08413755370f5e435379a981d80141bf0148f686..13e0f52dbfedb57a9eb32154bb2397adefeaeb31 100644
|
| --- a/content/browser/web_contents/web_contents_impl_unittest.cc
|
| +++ b/content/browser/web_contents/web_contents_impl_unittest.cc
|
| @@ -3306,8 +3306,7 @@ TEST_F(WebContentsImplTest, ThemeColorChangeDependingOnFirstVisiblePaint) {
|
|
|
| // Theme color changes should not propagate past the WebContentsImpl before
|
| // the first visually non-empty paint has occurred.
|
| - RenderViewHostTester::TestOnMessageReceived(
|
| - test_rvh(),
|
| + rfh->OnMessageReceived(
|
| FrameHostMsg_DidChangeThemeColor(rfh->GetRoutingID(), SK_ColorRED));
|
|
|
| EXPECT_EQ(SK_ColorRED, contents()->GetThemeColor());
|
| @@ -3317,14 +3316,13 @@ TEST_F(WebContentsImplTest, ThemeColorChangeDependingOnFirstVisiblePaint) {
|
| // propagate the current theme color to the delegates.
|
| RenderViewHostTester::TestOnMessageReceived(
|
| test_rvh(),
|
| - ViewHostMsg_DidFirstVisuallyNonEmptyPaint(rfh->GetRoutingID()));
|
| + ViewHostMsg_DidFirstVisuallyNonEmptyPaint(test_rvh()->GetRoutingID()));
|
|
|
| EXPECT_EQ(SK_ColorRED, contents()->GetThemeColor());
|
| EXPECT_EQ(SK_ColorRED, observer.last_theme_color());
|
|
|
| // Additional changes made by the web contents should propagate as well.
|
| - RenderViewHostTester::TestOnMessageReceived(
|
| - test_rvh(),
|
| + rfh->OnMessageReceived(
|
| FrameHostMsg_DidChangeThemeColor(rfh->GetRoutingID(), SK_ColorGREEN));
|
|
|
| EXPECT_EQ(SK_ColorGREEN, contents()->GetThemeColor());
|
|
|