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

Issue 222313005: [Profiles] Download high-res avatars using the --new-profile-management flag (Closed)

Created:
6 years, 8 months ago by noms (inactive)
Modified:
6 years, 7 months ago
Reviewers:
msw, rpetterson
CC:
chromium-reviews, dbeam+watch-options_chromium.org, Finnur, Aaron Boodman
Visibility:
Public.

Description

Download the high-res avatars when using the --new-profile-management flag The high res avatar is downloaded: - when we launch a new browser for a profile - when we switch the avatar for a profile. For now we re-download the file every time one of these actions is taken, regardless of whether the file exists on disk. Since this is still in development and the avatar resources keep changing, we want to make sure someone isn't stuck with an ugly resource. There's a todo in the code to stop doing this as soon as the resources settle a bit :) BUG=305048 TEST=Start Chrome with --new-profile-management. Create a new profile. In the avatar bubble, the active profile card should show a high-res (gray background) avatar. If you go to the user manager, the avatar displayed should be the same high res one (and not at all pixelated one). To double check, the file for that avatar should have been added to $USER_DATA_DIR/Avatars/ Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=267529

Patch Set 1 : #

Total comments: 2

Patch Set 2 : rebase #

Patch Set 3 : fix broken test, add a test(!), rachel nit & use correct cmd flag #

Patch Set 4 : typo #

Total comments: 38

Patch Set 5 : msw comments #

Total comments: 12

Patch Set 6 : msw comments part 2 #

Total comments: 9

Patch Set 7 : msw nits #

Total comments: 2

Patch Set 8 : fix broken unit tests & make new test better #

Total comments: 4

Patch Set 9 : eeeee final nits! ^____^ #

Patch Set 10 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+383 lines, -163 lines) Patch
A chrome/browser/profiles/profile_avatar_downloader.h View 1 2 3 4 5 1 chunk +31 lines, -0 lines 0 comments Download
A chrome/browser/profiles/profile_avatar_downloader.cc View 1 2 3 4 5 6 7 8 1 chunk +50 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_avatar_icon_util.h View 1 2 chunks +13 lines, -1 line 0 comments Download
M chrome/browser/profiles/profile_avatar_icon_util.cc View 1 2 3 4 5 6 7 8 9 6 chunks +15 lines, -4 lines 0 comments Download
M chrome/browser/profiles/profile_info_cache.h View 1 2 3 4 5 6 4 chunks +30 lines, -2 lines 0 comments Download
M chrome/browser/profiles/profile_info_cache.cc View 1 2 3 4 5 6 14 chunks +194 lines, -153 lines 0 comments Download
M chrome/browser/profiles/profile_info_cache_unittest.cc View 1 2 3 4 5 6 7 8 4 chunks +48 lines, -3 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 30 (0 generated)
noms (inactive)
Hi Rachel, Here's the last CL about downloading high res avatars, that actually downloads the ...
6 years, 8 months ago (2014-04-09 19:48:51 UTC) #1
noms (inactive)
∩∩ (゚ω゚) Ping! │ │ │ └─┐○ ヽ 丿 ∥ ̄∥
6 years, 8 months ago (2014-04-22 16:49:24 UTC) #2
rpetterson
LGTM with a nit You might consider breaking out the bitmap_fetcher stuff into a separate ...
6 years, 8 months ago (2014-04-24 23:40:32 UTC) #3
noms (inactive)
+ Mike for owner stamp on chrome/browser/ui. Rachel: I've also added a unit test to ...
6 years, 7 months ago (2014-04-28 19:08:56 UTC) #4
msw
This CL sure does a lot, did you consider Rachel's comment: "You might consider breaking ...
6 years, 7 months ago (2014-04-28 20:46:37 UTC) #5
noms (inactive)
Oh, I did break up the BitmapFetcher changes. They went here: https://codereview.chromium.org/253623002/ :)
6 years, 7 months ago (2014-04-28 20:47:46 UTC) #6
noms (inactive)
Hi Mike, Thanks for the review; it was really helpful! I've addressed all of the ...
6 years, 7 months ago (2014-04-29 19:12:27 UTC) #7
msw
Looking much better, I really only have two big comments. https://codereview.chromium.org/222313005/diff/190001/chrome/browser/profiles/profiles_state.h File chrome/browser/profiles/profiles_state.h (right): https://codereview.chromium.org/222313005/diff/190001/chrome/browser/profiles/profiles_state.h#newcode51 ...
6 years, 7 months ago (2014-04-29 20:11:43 UTC) #8
noms (inactive)
https://codereview.chromium.org/222313005/diff/190001/chrome/browser/profiles/profiles_state.h File chrome/browser/profiles/profiles_state.h (right): https://codereview.chromium.org/222313005/diff/190001/chrome/browser/profiles/profiles_state.h#newcode51 chrome/browser/profiles/profiles_state.h:51: // If the file doesn't already exist, starts a ...
6 years, 7 months ago (2014-04-29 20:29:10 UTC) #9
msw
https://codereview.chromium.org/222313005/diff/240001/chrome/browser/profiles/profile_avatar_downloader.h File chrome/browser/profiles/profile_avatar_downloader.h (right): https://codereview.chromium.org/222313005/diff/240001/chrome/browser/profiles/profile_avatar_downloader.h#newcode11 chrome/browser/profiles/profile_avatar_downloader.h:11: class ProfileAvatarDownloader : public chrome::BitmapFetcherDelegate { Is there any ...
6 years, 7 months ago (2014-04-29 21:17:33 UTC) #10
noms (inactive)
Addressing the high level comments first: - We have considered shipping the avatars with Chrome, ...
6 years, 7 months ago (2014-04-30 13:58:32 UTC) #11
msw
On 2014/04/30 13:58:32, Monica Dinculescu wrote: > Addressing the high level comments first: > > ...
6 years, 7 months ago (2014-04-30 15:36:56 UTC) #12
noms (inactive)
> 1) RE sizes: Did you tools/resources/optimize-png-files.sh or consider WebP? I looked at optimized pngs, ...
6 years, 7 months ago (2014-04-30 15:58:04 UTC) #13
noms (inactive)
https://codereview.chromium.org/222313005/diff/240001/chrome/browser/profiles/profile_info_cache.h File chrome/browser/profiles/profile_info_cache.h (right): https://codereview.chromium.org/222313005/diff/240001/chrome/browser/profiles/profile_info_cache.h#newcode214 chrome/browser/profiles/profile_info_cache.h:214: // ProfileAvatarDownloader pointers are deleted when the download completes ...
6 years, 7 months ago (2014-04-30 15:58:59 UTC) #14
msw
On 2014/04/30 15:58:04, Monica Dinculescu wrote: > > 3) RE caching: Why are they saved ...
6 years, 7 months ago (2014-04-30 17:26:13 UTC) #15
noms (inactive)
https://codereview.chromium.org/222313005/diff/260001/chrome/browser/profiles/profile_info_cache.cc File chrome/browser/profiles/profile_info_cache.cc (right): https://codereview.chromium.org/222313005/diff/260001/chrome/browser/profiles/profile_info_cache.cc#newcode521 chrome/browser/profiles/profile_info_cache.cc:521: // If needed, start downloading the high-res avatar. Oh, ...
6 years, 7 months ago (2014-04-30 17:34:51 UTC) #16
noms (inactive)
As discussed offline, DIR_RESOURCES is bad news bears, as it seems to contain the release ...
6 years, 7 months ago (2014-04-30 19:38:50 UTC) #17
msw
LGTM with nits, thanks for addressing all my comments. https://codereview.chromium.org/222313005/diff/280001/chrome/browser/profiles/profile_avatar_downloader.cc File chrome/browser/profiles/profile_avatar_downloader.cc (right): https://codereview.chromium.org/222313005/diff/280001/chrome/browser/profiles/profile_avatar_downloader.cc#newcode32 chrome/browser/profiles/profile_avatar_downloader.cc:32: ...
6 years, 7 months ago (2014-04-30 19:46:21 UTC) #18
noms (inactive)
Thank you *so much* for the review. I'm way happier with the code now! https://codereview.chromium.org/222313005/diff/280001/chrome/browser/profiles/profile_avatar_downloader.cc ...
6 years, 7 months ago (2014-04-30 20:02:19 UTC) #19
noms (inactive)
The CQ bit was checked by noms@chromium.org
6 years, 7 months ago (2014-04-30 20:02:26 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/noms@chromium.org/222313005/300001
6 years, 7 months ago (2014-04-30 20:05:39 UTC) #21
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-04-30 21:00:54 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel on tryserver.chromium
6 years, 7 months ago (2014-04-30 21:00:55 UTC) #23
noms (inactive)
The CQ bit was checked by noms@chromium.org
6 years, 7 months ago (2014-04-30 21:03:03 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/noms@chromium.org/222313005/300001
6 years, 7 months ago (2014-04-30 21:04:32 UTC) #25
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-04-30 21:08:08 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel on tryserver.chromium
6 years, 7 months ago (2014-04-30 21:08:08 UTC) #27
noms (inactive)
The CQ bit was checked by noms@chromium.org
6 years, 7 months ago (2014-05-01 14:23:49 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/noms@chromium.org/222313005/320001
6 years, 7 months ago (2014-05-01 14:24:15 UTC) #29
commit-bot: I haz the power
6 years, 7 months ago (2014-05-01 16:32:34 UTC) #30
Message was sent while issue was closed.
Change committed as 267529

Powered by Google App Engine
This is Rietveld 408576698