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

Issue 2841433003: Do not touch ui::ResourceBundle on non-UI thread in web_app_mac.mm (Closed)

Created:
3 years, 8 months ago by tzik
Modified:
3 years, 7 months ago
Reviewers:
tapted
CC:
chromium-reviews, tapted, Matt Giuca, mac-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Do not touch ui::ResourceBundle on non-UI thread in web_app_mac.mm gfx::ImageStorage has a non-thread-safe ref count, and gfx::Image in ui::ResourceBundle needs to be copied or destroyed on the UI thread. This CL removes an access to gfx::Image from non-UI thread in web_app_mac.mm, to avoid a data race. BUG=714209, 714280 Review-Url: https://codereview.chromium.org/2841433003 Cr-Commit-Position: refs/heads/master@{#468712} Committed: https://chromium.googlesource.com/chromium/src/+/08fb0ca7077abf9c7ddfce597a4015244b16d434

Patch Set 1 #

Patch Set 2 : fix #

Patch Set 3 : . #

Patch Set 4 : fix #

Patch Set 5 : . #

Patch Set 6 : fix #

Patch Set 7 : . #

Patch Set 8 : . #

Patch Set 9 : . #

Total comments: 6

Patch Set 10 : unify loop style #

Patch Set 11 : fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+66 lines, -32 lines) Patch
M chrome/browser/web_applications/web_app_mac.mm View 1 2 3 4 5 6 7 8 9 10 4 chunks +66 lines, -32 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 81 (76 generated)
tzik
PTAL
3 years, 7 months ago (2017-05-01 07:17:19 UTC) #62
tapted
Can you add 714280 to BUG= as well? then lgtm - just minor tweaks There's ...
3 years, 7 months ago (2017-05-01 08:43:45 UTC) #65
tzik
https://codereview.chromium.org/2841433003/diff/270001/chrome/browser/web_applications/web_app_mac.mm File chrome/browser/web_applications/web_app_mac.mm (right): https://codereview.chromium.org/2841433003/diff/270001/chrome/browser/web_applications/web_app_mac.mm#newcode394 chrome/browser/web_applications/web_app_mac.mm:394: int resource_ids[] = { On 2017/05/01 08:43:45, tapted wrote: ...
3 years, 7 months ago (2017-05-02 17:58:36 UTC) #73
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2841433003/310001
3 years, 7 months ago (2017-05-02 18:27:14 UTC) #78
commit-bot: I haz the power
3 years, 7 months ago (2017-05-02 18:41:13 UTC) #81
Message was sent while issue was closed.
Committed patchset #11 (id:310001) as
https://chromium.googlesource.com/chromium/src/+/08fb0ca7077abf9c7ddfce597a40...

Powered by Google App Engine
This is Rietveld 408576698