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

Issue 2703283005: Destroy web_app::ShortcutInfo on UI thread (Closed)

Created:
3 years, 10 months ago by tzik
Modified:
3 years, 9 months ago
Reviewers:
tapted, Matt Giuca
CC:
chromium-reviews, qsr+mojo_chromium.org, vmpstr+watch_chromium.org, viettrungluu+watch_chromium.org, jam, gavinp+memory_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin-cc_chromium.org, oshima+watch_chromium.org, mac-reviews_chromium.org, piman+watch_chromium.org, cc-bugs_chromium.org, darin (slow to review), davemoore+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Destroy web_app::ShortcutInfo on UI thread web_app::ShortcutInfo used in cr/b/web_applications needs to be destroyed on UI thread, because it has a reference to a ImageStorage via gfx::ImageFamily. Since gfx::internal::ImageStorage has a non-thread-safe ref count, created on UI thread, and shared by others on UI thread, it needs on UI thread too on destruction. BUG=688072 Review-Url: https://codereview.chromium.org/2703283005 Cr-Commit-Position: refs/heads/master@{#454183} Committed: https://chromium.googlesource.com/chromium/src/+/5604ddf6347cb5023c40d7ecf4edfc2411fd6805

Patch Set 1 #

Patch Set 2 : fix #

Patch Set 3 : fix #

Patch Set 4 : +create_exact_fix #

Patch Set 5 : fix #

Patch Set 6 : merge pending fixes #

Patch Set 7 : rebase #

Patch Set 8 : debugging #

Patch Set 9 : rebase #

Patch Set 10 : . #

Total comments: 4

Patch Set 11 : s/auto/web_app::ShortcutInfo/. +Unretained. #

Total comments: 11

Patch Set 12 : pointer -> const ref #

Patch Set 13 : +DCHECK_CURRENTLY_ON #

Patch Set 14 : fix #

Patch Set 15 : +TestBrowserThreadBundle #

Unified diffs Side-by-side diffs Delta from patch set Stats (+138 lines, -104 lines) Patch
M chrome/browser/web_applications/web_app.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +13 lines, -9 lines 0 comments Download
M chrome/browser/web_applications/web_app.cc View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +33 lines, -14 lines 0 comments Download
M chrome/browser/web_applications/web_app_chromeos.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +6 lines, -7 lines 0 comments Download
M chrome/browser/web_applications/web_app_linux.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +12 lines, -13 lines 0 comments Download
M chrome/browser/web_applications/web_app_mac.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 6 chunks +37 lines, -29 lines 0 comments Download
M chrome/browser/web_applications/web_app_mac_unittest.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/web_applications/web_app_win.cc View 1 2 3 4 5 6 7 8 9 10 11 7 chunks +33 lines, -32 lines 0 comments Download

Messages

Total messages: 71 (58 generated)
tzik
PTAL
3 years, 9 months ago (2017-02-27 06:42:59 UTC) #38
tapted
+Matt - he's been poking a lot around the thread safety side of gfx::Image and ...
3 years, 9 months ago (2017-02-27 06:57:37 UTC) #40
tzik
https://codereview.chromium.org/2703283005/diff/180001/chrome/browser/web_applications/web_app.cc File chrome/browser/web_applications/web_app.cc (right): https://codereview.chromium.org/2703283005/diff/180001/chrome/browser/web_applications/web_app.cc#newcode93 chrome/browser/web_applications/web_app.cc:93: auto* shortcut_info_ptr = shortcut_info.get(); On 2017/02/27 06:57:37, tapted wrote: ...
3 years, 9 months ago (2017-02-27 07:42:12 UTC) #43
tzik
On 2017/02/27 06:57:37, tapted wrote: > +Matt - he's been poking a lot around the ...
3 years, 9 months ago (2017-02-27 07:58:05 UTC) #44
Matt Giuca
On 2017/02/27 07:58:05, tzik wrote: > On 2017/02/27 06:57:37, tapted wrote: > > +Matt - ...
3 years, 9 months ago (2017-02-28 07:45:37 UTC) #47
Matt Giuca
I very much prefer this one over the refcounted one. I think refcounting should be ...
3 years, 9 months ago (2017-03-01 08:49:55 UTC) #48
tapted
lgtm with a dcheck in ~ShortcutInfo (I don't think anyone will read the comment above ...
3 years, 9 months ago (2017-03-01 10:38:57 UTC) #49
tzik
https://codereview.chromium.org/2703283005/diff/200001/chrome/browser/web_applications/web_app.cc File chrome/browser/web_applications/web_app.cc (right): https://codereview.chromium.org/2703283005/diff/200001/chrome/browser/web_applications/web_app.cc#newcode179 chrome/browser/web_applications/web_app.cc:179: ShortcutInfo::~ShortcutInfo() {} On 2017/03/01 10:38:57, tapted wrote: > DCHECK_CURRENTLY_ON(BrowserThread::UI); ...
3 years, 9 months ago (2017-03-01 12:34:04 UTC) #54
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/2703283005/260001
3 years, 9 months ago (2017-03-01 17:28:27 UTC) #59
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/398241)
3 years, 9 months ago (2017-03-01 19:01:26 UTC) #61
Matt Giuca
This lgtm with the const ShortcutInfo& version and the DCHECK. It looks *very* nice to ...
3 years, 9 months ago (2017-03-01 23:17:28 UTC) #62
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/2703283005/280001
3 years, 9 months ago (2017-03-02 04:16:26 UTC) #68
commit-bot: I haz the power
3 years, 9 months ago (2017-03-02 05:10:21 UTC) #71
Message was sent while issue was closed.
Committed patchset #15 (id:280001) as
https://chromium.googlesource.com/chromium/src/+/5604ddf6347cb5023c40d7ecf4ed...

Powered by Google App Engine
This is Rietveld 408576698