| Index: content/browser/android/content_view_core_impl.cc
|
| diff --git a/content/browser/android/content_view_core_impl.cc b/content/browser/android/content_view_core_impl.cc
|
| index d70219a71ef275a274ba0f2cb91ad79fe20f34a8..24dfd2c1a00acd05e17fb3b1155b40b5243afaf6 100644
|
| --- a/content/browser/android/content_view_core_impl.cc
|
| +++ b/content/browser/android/content_view_core_impl.cc
|
| @@ -214,8 +214,10 @@ ContentViewCoreImpl::ContentViewCoreImpl(
|
| web_contents_(static_cast<WebContentsImpl*>(web_contents)),
|
| root_layer_(cc::SolidColorLayer::Create(Compositor::LayerSettings())),
|
| page_scale_(1),
|
| - dpi_scale_(ui::GetScaleFactorForNativeView(this)),
|
| window_android_(window_android),
|
| + // window_android_ must be initialized before calling
|
| + // GetScaleFactorForNativeView since this method uses window_android_
|
| + dpi_scale_(ui::GetScaleFactorForNativeView(this)),
|
| device_orientation_(0),
|
| accessibility_enabled_(false) {
|
| CHECK(web_contents) <<
|
|
|