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

Issue 2423004: Refactored Histogram::FactoryGet() to be style-compliant... (Closed)

Created:
10 years, 6 months ago by Ziad Hatahet
Modified:
9 years, 7 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, ben+cc_chromium.org, darin-cc_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

Refactored Histogram::FactoryGet() to be style-compliant Currently, two (2) overloaded versions of Histogram::FactoryGet() exist. Google's C++ style guide discourages such implementations. I refactored the methods into Histogram::FactoryGet() (no name change), which takes 'Sample' types as arguments, and Histogram::FactoryTimeGet(), which takes base::TimeDelta types as arguments. r = jar Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=48766

Patch Set 1 #

Total comments: 2

Patch Set 2 : '' #

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -13 lines) Patch
M base/histogram.h View 5 chunks +5 lines, -5 lines 0 comments Download
M base/histogram.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/net/websocket_experiment/websocket_experiment_task.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/disk_cache/histogram_macros.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M net/socket/client_socket_pool_histograms.cc View 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Ziad Hatahet
Hi jar, Could you let me know what you think please? Cheers, -- Ziad
10 years, 6 months ago (2010-06-02 18:58:13 UTC) #1
jar (doing other things)
LGTM, but please fix the small nit below before landing. http://codereview.chromium.org/2423004/diff/1/5 File net/disk_cache/histogram_macros.h (right): http://codereview.chromium.org/2423004/diff/1/5#newcode40 ...
10 years, 6 months ago (2010-06-02 20:30:59 UTC) #2
Ziad Hatahet
10 years, 6 months ago (2010-06-02 20:55:57 UTC) #3
http://codereview.chromium.org/2423004/diff/1/5
File net/disk_cache/histogram_macros.h (right):

http://codereview.chromium.org/2423004/diff/1/5#newcode40
net/disk_cache/histogram_macros.h:40: Histogram::kUmaTargetedHistogramFlag); \
On 2010/06/02 20:30:59, jar wrote:
> style nit: either indent to match the start of the arg list on teh previous
> line, or indent 4 space beyond the start of the previous line.

Done.

Powered by Google App Engine
This is Rietveld 408576698