Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1290)

Issue 385173003: Fix the issue that webview-browser-sample crashed on Mac. (Closed)

Created:
6 years, 5 months ago by Xi Han
Modified:
6 years, 5 months ago
Reviewers:
Fady Samuel
CC:
chromium-reviews, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

The crash is caused when a guest is attached, a parameter "repaint" is passed in. For most device, their scale factor is 1, so we don't need to repaint and "repaint" is set to false. However, for high dpi devices like Mac, the scale factor is 2, rather than 1. Therefore, a DECHECK of the scale factor == 1 is failed. So we use GetDeviceScaleFactor() to initialize last_device_scale_factor as well. BUG=393278 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=282711

Patch Set 1 #

Patch Set 2 : Update the initialition of last_device_scale_factor. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M content/renderer/browser_plugin/browser_plugin.cc View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 6 (0 generated)
Xi Han
6 years, 5 months ago (2014-07-11 19:02:44 UTC) #1
Xi Han
6 years, 5 months ago (2014-07-11 19:35:21 UTC) #2
Fady Samuel
lgtm
6 years, 5 months ago (2014-07-11 19:37:22 UTC) #3
Xi Han
The CQ bit was checked by hanxi@chromium.org
6 years, 5 months ago (2014-07-11 20:38:43 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hanxi@chromium.org/385173003/20001
6 years, 5 months ago (2014-07-11 20:41:11 UTC) #5
commit-bot: I haz the power
6 years, 5 months ago (2014-07-11 21:54:35 UTC) #6
Message was sent while issue was closed.
Change committed as 282711

Powered by Google App Engine
This is Rietveld 408576698