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

Issue 8227025: Multi-Profiles: Fix choosing random profile avatar (Closed)

Created:
9 years, 2 months ago by sail
Modified:
9 years, 2 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Multi-Profiles: Fix choosing random profile avatar The code to choose the default profile avatar had a bug where it was much more likely to pick the 9th avatar icon. I fixed the code to make it truly random. I also refactored it so that it's much easier to reason about. BUG=99788 TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=104984

Patch Set 1 #

Total comments: 7

Patch Set 2 : address review comments #

Patch Set 3 : fix branch #

Patch Set 4 : address review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+51 lines, -33 lines) Patch
M chrome/browser/profiles/profile_info_cache.h View 1 2 3 2 chunks +10 lines, -1 line 0 comments Download
M chrome/browser/profiles/profile_info_cache.cc View 1 2 chunks +41 lines, -32 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
sail
9 years, 2 months ago (2011-10-11 18:54:30 UTC) #1
Miranda Callahan
On 2011/10/11 18:54:30, sail wrote: LGTM with some naming comments!
9 years, 2 months ago (2011-10-11 19:08:47 UTC) #2
sail
On 2011/10/11 19:08:47, Miranda Callahan wrote: > On 2011/10/11 18:54:30, sail wrote: > > LGTM ...
9 years, 2 months ago (2011-10-11 19:16:20 UTC) #3
Miranda Callahan
...and here are those comments. ;-) http://codereview.chromium.org/8227025/diff/1/chrome/browser/profiles/profile_info_cache.cc File chrome/browser/profiles/profile_info_cache.cc (right): http://codereview.chromium.org/8227025/diff/1/chrome/browser/profiles/profile_info_cache.cc#newcode63 chrome/browser/profiles/profile_info_cache.cc:63: // The first ...
9 years, 2 months ago (2011-10-11 19:17:51 UTC) #4
sail
http://codereview.chromium.org/8227025/diff/1/chrome/browser/profiles/profile_info_cache.cc File chrome/browser/profiles/profile_info_cache.cc (right): http://codereview.chromium.org/8227025/diff/1/chrome/browser/profiles/profile_info_cache.cc#newcode63 chrome/browser/profiles/profile_info_cache.cc:63: // The first 8 icons are gendar netural. On ...
9 years, 2 months ago (2011-10-11 21:44:54 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sail@chromium.org/8227025/4002
9 years, 2 months ago (2011-10-12 00:10:59 UTC) #6
commit-bot: I haz the power
9 years, 2 months ago (2011-10-12 03:04:22 UTC) #7
Change committed as 104984

Powered by Google App Engine
This is Rietveld 408576698