Index: content/common/page_state_serialization.cc |
diff --git a/content/common/page_state_serialization.cc b/content/common/page_state_serialization.cc |
index 53ddf098d16b7ba0970d54f6d3734925fdb3e211..68974aebb84dc26aad64a508ebb4445200686aef 100644 |
--- a/content/common/page_state_serialization.cc |
+++ b/content/common/page_state_serialization.cc |
@@ -606,8 +606,7 @@ void ReadFrameState(SerializeObject* obj, bool is_top, |
float device_scale_factor = g_device_scale_factor_for_testing; |
if (!device_scale_factor) { |
device_scale_factor = |
- gfx::Screen::GetNativeScreen()->GetPrimaryDisplay(). |
- device_scale_factor(); |
+ gfx::Screen::GetScreen()->GetPrimaryDisplay().device_scale_factor(); |
} |
state->scroll_offset = |
gfx::Point(state->scroll_offset.x() / state->page_scale_factor, |