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

Issue 7590002: [cros] Added histograms for user image usage (Closed)

Created:
9 years, 4 months ago by whywhat
Modified:
9 years, 4 months ago
CC:
chromium-reviews, nkostylev+cc_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

[cros] Added histograms for user image usage R=altimofeev@chromium.org BUG=chromium-os:18916 TEST=Sign in as a new or existing user with different images chosen. Change picture to different ones. Check that each time the appropriate histogram is updated at chrome://histograms. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=96176

Patch Set 1 #

Total comments: 4

Patch Set 2 : No write to map for default images #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+62 lines, -21 lines) Patch
M chrome/browser/chromeos/login/user_controller.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/login/user_image_screen.cc View 3 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/user_manager.h View 2 chunks +7 lines, -1 line 0 comments Download
M chrome/browser/chromeos/login/user_manager.cc View 1 5 chunks +35 lines, -19 lines 1 comment Download
M chrome/browser/ui/webui/options/chromeos/change_picture_options_handler.cc View 3 chunks +10 lines, -0 lines 1 comment Download

Messages

Total messages: 7 (0 generated)
whywhat
9 years, 4 months ago (2011-08-09 19:36:05 UTC) #1
altimofeev
LGTM http://codereview.chromium.org/7590002/diff/1/chrome/browser/chromeos/login/user_manager.cc File chrome/browser/chromeos/login/user_manager.cc (right): http://codereview.chromium.org/7590002/diff/1/chrome/browser/chromeos/login/user_manager.cc#newcode325 chrome/browser/chromeos/login/user_manager.cc:325: user_images_[email] = user.image(); Why this is needed? AFAIU, ...
9 years, 4 months ago (2011-08-10 08:48:53 UTC) #2
whywhat
http://codereview.chromium.org/7590002/diff/1/chrome/browser/chromeos/login/user_manager.cc File chrome/browser/chromeos/login/user_manager.cc (right): http://codereview.chromium.org/7590002/diff/1/chrome/browser/chromeos/login/user_manager.cc#newcode325 chrome/browser/chromeos/login/user_manager.cc:325: user_images_[email] = user.image(); On 2011/08/10 08:48:54, altimofeev wrote: > ...
9 years, 4 months ago (2011-08-10 11:34:38 UTC) #3
jar (doing other things)
Drive by comments (since I was asked to look at this code during a review ...
9 years, 4 months ago (2011-08-10 17:48:52 UTC) #4
whywhat
Thanks Jim! Will address these comments in the following changelist. My main concern was about ...
9 years, 4 months ago (2011-08-10 17:54:52 UTC) #5
jar (doing other things)
The histogram system always "pads" ENUMERATED_HISTOGRAMS with an empty slot so that they cane be ...
9 years, 4 months ago (2011-08-10 18:08:33 UTC) #6
jar (doing other things)
9 years, 4 months ago (2011-08-10 18:17:41 UTC) #7
Rereading what I wrote... I might have caused confusion:

On Wed, Aug 10, 2011 at 11:08 AM, Jim Roskind <jar@chromium.org> wrote:

> The histogram system always "pads" ENUMERATED_HISTOGRAMS with an empty slot
> so that they cane be expanded in the future.  As a result, you don't need to
> bother with padding in other cases (which should have no samples, and not be
> visible anyway).


I was noting that you don't have to have all your different histograms with
different enumerated list.  It is alsa fine to re-use the XML documentation
for an enumeration when there are some extra bucket definitions that don't
come into play in a shorter histogram.

You must always specify a single named histogram with exactly the same specs
(min/max/count of elements) in all places in your code.  I hope I didn't
confuse that point.

Jim




>
> One trick you could look at would be to put the "default" at the bottom of
> the histogram (slots 0 or 1), so that you can grow the array by adding new
> built-in photos at the end of your enum list.  As currently designed, when
> you decide to add new built-in-photos, you'll have to renumber your
> kDefault, which means you'll need a new histogram... by a different name (to
> avoid blurring data with different means when you select an aggregatino of
> EVERYTHING combining multiple versions).
>
> This is not a big deal, as I'm guessing the pictures are not that critical.
>  Still, it is probably interesting to see what pictures are popular, and
> which unpopular pictures should be replaced.
>
> Jim
>
>
>
> On Wed, Aug 10, 2011 at 10:54 AM, <avayvod@chromium.org> wrote:
>
>> Thanks Jim! Will address these comments in the following changelist.
>> My main concern was about passing different enumeration size to histogram
>> macros
>> though on the server side these all are considered to be the same enum.
>> Maybe I should pass the same size everywhere even if one histogram bucket
>> will
>> always be empty?
>>
>>
>>
http://codereview.chromium.**org/7590002/<http://codereview.chromium.org/7590...
>>
>
>

Powered by Google App Engine
This is Rietveld 408576698