Set the display mode from the CreateViewParams not from RenderWidget.

We want to not use the RenderWidget before it's initialized, and we
want to move initialization to where there is a main frame already
(or part of making the main frame). So stop using the RenderWidget
to grab the display mode when setting it on the WebView, since we
have it in the CreateViewParams anyways.

Change-Id: Ia9d5a1ecf9dc222a662bfc74de94764f50143ab3
Bug: 912193
Reviewed-by: Avi Drissman <>
Commit-Queue: danakj <>
Cr-Commit-Position: refs/heads/master@{#622226}
1 file changed