summaryrefslogtreecommitdiffstats
path: root/android_webview
diff options
context:
space:
mode:
authorBo Liu <boliu@chromium.org>2016-01-25 15:21:59 -0800
committerBo Liu <boliu@chromium.org>2016-01-25 23:25:35 +0000
commit1adb2f994a1e35719398d351c01532a35e453400 (patch)
tree658ef99e58ecd0be08668a5382b07c5439b2d670 /android_webview
parent134a1dc6b20c8d86e58f8ccecfe3b76915285f88 (diff)
downloadchromium_src-1adb2f994a1e35719398d351c01532a35e453400.zip
chromium_src-1adb2f994a1e35719398d351c01532a35e453400.tar.gz
chromium_src-1adb2f994a1e35719398d351c01532a35e453400.tar.bz2
[Merge m49] aw: Fix setting background color
Follow up to r369480. Use the main frame routing number for setting background color IPC. BUG=580765 Review URL: https://codereview.chromium.org/1622913002 Cr-Commit-Position: refs/heads/master@{#371332} (cherry picked from commit 0deb9bea5d027018c61720d3687a31f620ce1db9) Review URL: https://codereview.chromium.org/1636803002 . Cr-Commit-Position: refs/branch-heads/2623@{#131} Cr-Branched-From: 92d77538a86529ca35f9220bd3cd512cbea1f086-refs/heads/master@{#369907}
Diffstat (limited to 'android_webview')
-rw-r--r--android_webview/browser/renderer_host/aw_render_view_host_ext.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/android_webview/browser/renderer_host/aw_render_view_host_ext.cc b/android_webview/browser/renderer_host/aw_render_view_host_ext.cc
index 6e22728..090541d 100644
--- a/android_webview/browser/renderer_host/aw_render_view_host_ext.cc
+++ b/android_webview/browser/renderer_host/aw_render_view_host_ext.cc
@@ -120,8 +120,8 @@ void AwRenderViewHostExt::SmoothScroll(int target_x,
void AwRenderViewHostExt::RenderViewCreated(
content::RenderViewHost* render_view_host) {
- Send(new AwViewMsg_SetBackgroundColor(web_contents()->GetRoutingID(),
- background_color_));
+ Send(new AwViewMsg_SetBackgroundColor(
+ web_contents()->GetMainFrame()->GetRoutingID(), background_color_));
}
void AwRenderViewHostExt::RenderProcessGone(base::TerminationStatus status) {