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

Issue 2577273002: Clean up IconLoader. (Closed)

Created:
4 years ago by Avi (use Gerrit)
Modified:
4 years ago
Reviewers:
sky
CC:
chromium-reviews, asanka, extensions-reviews_chromium.org, tfarina, mac-reviews_chromium.org, chromium-apps-reviews_chromium.org, dbeam+watch-downloads_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Clean up IconLoader. There are lifetime issues due to IconLoader being refcounted for no good reason, so stop doing that. BUG=674743 Committed: https://crrev.com/f0a7b5b81faa4d2abf594b6e3ac135ed60dad504 Cr-Commit-Position: refs/heads/master@{#439348}

Patch Set 1 #

Patch Set 2 : smaller scope #

Total comments: 7

Patch Set 3 : lifetime fixed #

Total comments: 8

Patch Set 4 : bind #

Unified diffs Side-by-side diffs Delta from patch set Stats (+77 lines, -90 lines) Patch
M chrome/browser/icon_loader.h View 1 2 3 5 chunks +22 lines, -25 lines 0 comments Download
M chrome/browser/icon_loader.cc View 1 2 3 1 chunk +19 lines, -17 lines 0 comments Download
M chrome/browser/icon_loader_android.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/icon_loader_auralinux.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/icon_loader_chromeos.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/icon_loader_mac.mm View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/icon_loader_win.cc View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/icon_manager.h View 1 2 3 3 chunks +9 lines, -9 lines 0 comments Download
M chrome/browser/icon_manager.cc View 1 2 3 2 chunks +16 lines, -32 lines 0 comments Download

Messages

Total messages: 45 (26 generated)
Avi (use Gerrit)
4 years ago (2016-12-16 17:31:07 UTC) #15
sky
https://codereview.chromium.org/2577273002/diff/20001/chrome/browser/icon_loader.cc File chrome/browser/icon_loader.cc (right): https://codereview.chromium.org/2577273002/diff/20001/chrome/browser/icon_loader.cc#newcode26 chrome/browser/icon_loader.cc:26: base::Bind(&IconLoader::ReadGroup, base::Unretained(this)), Don't you need a weakptr here for ...
4 years ago (2016-12-16 18:21:10 UTC) #16
Avi (use Gerrit)
I'm getting dizzy thinking about the possibility now of IconManager being deleted while IconLoader is ...
4 years ago (2016-12-16 19:48:51 UTC) #17
Avi (use Gerrit)
https://codereview.chromium.org/2577273002/diff/20001/chrome/browser/icon_loader.h File chrome/browser/icon_loader.h (right): https://codereview.chromium.org/2577273002/diff/20001/chrome/browser/icon_loader.h#newcode46 chrome/browser/icon_loader.h:46: using IconLoadedCallback = base::Callback< On 2016/12/16 19:48:51, Avi wrote: ...
4 years ago (2016-12-16 20:32:40 UTC) #18
Avi (use Gerrit)
https://codereview.chromium.org/2577273002/diff/20001/chrome/browser/icon_loader.h File chrome/browser/icon_loader.h (right): https://codereview.chromium.org/2577273002/diff/20001/chrome/browser/icon_loader.h#newcode46 chrome/browser/icon_loader.h:46: using IconLoadedCallback = base::Callback< OK, I think I have ...
4 years ago (2016-12-16 20:35:31 UTC) #19
Avi (use Gerrit)
You can't PostTask a OnceCallback so this is a problem.
4 years ago (2016-12-16 20:39:35 UTC) #20
Avi (use Gerrit)
On 2016/12/16 20:39:35, Avi wrote: > You can't PostTask a OnceCallback so this is a ...
4 years ago (2016-12-16 20:43:30 UTC) #21
sky
https://codereview.chromium.org/2577273002/diff/20001/chrome/browser/icon_loader.cc File chrome/browser/icon_loader.cc (right): https://codereview.chromium.org/2577273002/diff/20001/chrome/browser/icon_loader.cc#newcode26 chrome/browser/icon_loader.cc:26: base::Bind(&IconLoader::ReadGroup, base::Unretained(this)), On 2016/12/16 19:48:51, Avi wrote: > On ...
4 years ago (2016-12-16 20:46:08 UTC) #22
Avi (use Gerrit)
On 2016/12/16 20:46:08, sky wrote: > https://codereview.chromium.org/2577273002/diff/20001/chrome/browser/icon_loader.cc > File chrome/browser/icon_loader.cc (right): > > https://codereview.chromium.org/2577273002/diff/20001/chrome/browser/icon_loader.cc#newcode26 > ...
4 years ago (2016-12-16 21:00:11 UTC) #23
Avi (use Gerrit)
On 2016/12/16 21:00:11, Avi wrote: > On 2016/12/16 20:46:08, sky wrote: > > > https://codereview.chromium.org/2577273002/diff/20001/chrome/browser/icon_loader.cc ...
4 years ago (2016-12-16 21:15:08 UTC) #24
sky
SGTM On Fri, Dec 16, 2016 at 1:00 PM, <avi@chromium.org> wrote: > On 2016/12/16 20:46:08, ...
4 years ago (2016-12-16 21:55:45 UTC) #27
sky
Thanks for trying! I honestly haven't tried using it, but given we're trying to convert ...
4 years ago (2016-12-16 21:57:12 UTC) #28
Avi (use Gerrit)
On 2016/12/16 21:57:12, sky wrote: > Thanks for trying! > > I honestly haven't tried ...
4 years ago (2016-12-16 22:06:02 UTC) #29
sky
https://codereview.chromium.org/2577273002/diff/40001/chrome/browser/icon_loader.cc File chrome/browser/icon_loader.cc (right): https://codereview.chromium.org/2577273002/diff/40001/chrome/browser/icon_loader.cc#newcode13 chrome/browser/icon_loader.cc:13: /*static*/ style for these is // static https://codereview.chromium.org/2577273002/diff/40001/chrome/browser/icon_loader.cc#newcode28 chrome/browser/icon_loader.cc:28: ...
4 years ago (2016-12-16 23:27:27 UTC) #30
Avi (use Gerrit)
https://codereview.chromium.org/2577273002/diff/40001/chrome/browser/icon_loader.cc File chrome/browser/icon_loader.cc (right): https://codereview.chromium.org/2577273002/diff/40001/chrome/browser/icon_loader.cc#newcode13 chrome/browser/icon_loader.cc:13: /*static*/ On 2016/12/16 23:27:27, sky wrote: > style for ...
4 years ago (2016-12-17 02:28:53 UTC) #35
sky
Nice! LGTM
4 years ago (2016-12-17 16:54:17 UTC) #38
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/2577273002/60001
4 years ago (2016-12-17 18:57:06 UTC) #40
commit-bot: I haz the power
Committed patchset #4 (id:60001) as https://chromium.googlesource.com/chromium/src/+/e497724a0de5c1c4309878269bfdffdd3a15753e
4 years ago (2016-12-17 19:02:03 UTC) #43
commit-bot: I haz the power
4 years ago (2016-12-17 19:04:04 UTC) #45
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/f0a7b5b81faa4d2abf594b6e3ac135ed60dad504
Cr-Commit-Position: refs/heads/master@{#439348}

Powered by Google App Engine
This is Rietveld 408576698