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

Issue 4065005: Add histogram to track number of .nexe launches, normalized against opening n... (Closed)

Created:
10 years, 2 months ago by mmortensen
Modified:
9 years, 7 months ago
CC:
chromium-reviews, ben+cc_chromium.org
Visibility:
Public.

Description

Add histogram to track number of .nexe launches, normalized against opening new tabs. BUG=914 (http://code.google.com/p/nativeclient/issues/detail?id=914) TEST=none Relied on trybots and manually checking "about:histograms" Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=64261

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 15

Patch Set 4 : '' #

Patch Set 5 : '' #

Total comments: 1

Patch Set 6 : '' #

Patch Set 7 : '' #

Patch Set 8 : '' #

Total comments: 3

Patch Set 9 : '' #

Patch Set 10 : '' #

Patch Set 11 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -2 lines) Patch
M base/base.gypi View 8 1 chunk +2 lines, -0 lines 0 comments Download
A base/metrics/nacl_histogram.h View 5 6 7 8 9 1 chunk +29 lines, -0 lines 0 comments Download
A base/metrics/nacl_histogram.cc View 7 8 1 chunk +23 lines, -0 lines 0 comments Download
M chrome/browser/nacl_host/nacl_process_host.cc View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/tabs/default_tab_handler.cc View 1 2 3 4 5 6 7 8 3 chunks +3 lines, -1 line 0 comments Download

Messages

Total messages: 14 (0 generated)
mmortensen
I'm relatively new to NativeClient and haven't modified the chrome source before...so let me know ...
10 years, 2 months ago (2010-10-25 16:38:42 UTC) #1
jar (doing other things)
http://codereview.chromium.org/4065005/diff/7001/8001 File chrome/browser/nacl_host/nacl_process_host.cc (right): http://codereview.chromium.org/4065005/diff/7001/8001#newcode15 chrome/browser/nacl_host/nacl_process_host.cc:15: #include "base/metrics/histogram.h" nit: Please alphabetize names. http://codereview.chromium.org/4065005/diff/7001/8001#newcode51 chrome/browser/nacl_host/nacl_process_host.cc:51: running_on_wow64_(false) ...
10 years, 2 months ago (2010-10-25 22:03:14 UTC) #2
mmortensen
Made recommeded changes. Will re-upload for review. http://codereview.chromium.org/4065005/diff/7001/8001 File chrome/browser/nacl_host/nacl_process_host.cc (right): http://codereview.chromium.org/4065005/diff/7001/8001#newcode15 chrome/browser/nacl_host/nacl_process_host.cc:15: #include "base/metrics/histogram.h" ...
10 years, 1 month ago (2010-10-26 15:11:03 UTC) #3
mmortensen
Added a macro so that we don't have to worry about name-matching in the 3 ...
10 years, 1 month ago (2010-10-26 16:22:55 UTC) #4
jar (doing other things)
http://codereview.chromium.org/4065005/diff/16001/17001 File base/metrics/nacl_histogram.h (right): http://codereview.chromium.org/4065005/diff/16001/17001#newcode28 base/metrics/nacl_histogram.h:28: #define UMA_NACL_HISTOGRAM_ENUMERATION(hvalue) UMA_HISTOGRAM_ENUMERATION( \ This would work... but... macros ...
10 years, 1 month ago (2010-10-26 16:29:33 UTC) #5
mmortensen
Here's a function version instead of macro-based. By the way, I tried to upload my ...
10 years, 1 month ago (2010-10-26 17:19:49 UTC) #6
mmortensen
Fixed .gypi file and trybots are now happy
10 years, 1 month ago (2010-10-26 19:03:29 UTC) #7
jar (doing other things)
With one style nit below, LGTM. It is plausible that the function could actually sit ...
10 years, 1 month ago (2010-10-26 19:15:48 UTC) #8
mmortensen
http://codereview.chromium.org/4065005/diff/33001/34005 File chrome/browser/tabs/default_tab_handler.cc (right): http://codereview.chromium.org/4065005/diff/33001/34005#newcode16 chrome/browser/tabs/default_tab_handler.cc:16: model_(new TabStripModel(this, delegate->GetProfile()))) { On 2010/10/26 19:15:51, jar wrote: ...
10 years, 1 month ago (2010-10-26 21:31:19 UTC) #9
mmortensen
Thanks for all your suggestions. I'm planning on fixing the one nit and landing as ...
10 years, 1 month ago (2010-10-26 21:33:03 UTC) #10
mmortensen
Committed as revision 64261
10 years, 1 month ago (2010-10-28 16:59:51 UTC) #11
jar (doing other things)
You should be able to use gcl upload for the xml file. Note that it ...
10 years, 1 month ago (2010-10-28 19:41:41 UTC) #12
jar (doing other things)
http://codereview.chromium.org/4065005/diff/33001/34005 File chrome/browser/tabs/default_tab_handler.cc (right): http://codereview.chromium.org/4065005/diff/33001/34005#newcode16 chrome/browser/tabs/default_tab_handler.cc:16: model_(new TabStripModel(this, delegate->GetProfile()))) { The word "model_" needs an ...
10 years, 1 month ago (2010-10-28 19:45:33 UTC) #13
mmortensen
10 years, 1 month ago (2010-10-28 21:37:32 UTC) #14
Sorry about that -- I meant to fix it and then got sidetracked and
overlooked it.
I've sent a new CL with just that.
Thank you!
-Mike

On Thu, Oct 28, 2010 at 1:45 PM, <jar@chromium.org> wrote:

>
> http://codereview.chromium.org/4065005/diff/33001/34005
> File chrome/browser/tabs/default_tab_handler.cc (right):
>
> http://codereview.chromium.org/4065005/diff/33001/34005#newcode16
> chrome/browser/tabs/default_tab_handler.cc:16: model_(new
> TabStripModel(this, delegate->GetProfile()))) {
> The word "model_" needs an addiitonal two characters of indentation.  It
> is a
> continuation line, and not aligned wiht a paren.  As a result, it needs
> a total
> of 4 "additional" spaces of indent, and it only has two.
>
> I was surprised you landed without fixing this, per my comment.  Please
> correct it. thx.
>
>
> On 2010/10/26 21:31:19, mmortensen wrote:
>
>> On 2010/10/26 19:15:51, jar wrote:
>> > nit: add two more characters of indentation on a "line
>>
> continuation".
>
>  Sorry....one more question.   The line I added (line 17) is lined up
>>
> with the
>
>> line below it
>>     model_->AddObserver(this);
>> Are you suggested the call to
>>     UmaNaclHistogramEnumeration
>> be indented more, or that the line above what I changed (line 16)
>>
> should have
>
>> been indented more?
>>
>
>
>
> http://codereview.chromium.org/4065005/show
>

Powered by Google App Engine
This is Rietveld 408576698