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

Issue 1476633003: Move HashMetricName to base namespace. (Closed)

Created:
5 years ago by bcwhite
Modified:
5 years ago
CC:
chromium-reviews, asvitkine+watch_chromium.org, vmpstr+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Move HashMetricName to base namespace. New code that will reside in base will need access to these methods. (cl/1471073007) Depends on https://codereview.chromium.org/1471073010 BUG=546019 Committed: https://crrev.com/502b229004bece63acb26aa53888626fddd0fccb Cr-Commit-Position: refs/heads/master@{#362244}

Patch Set 1 #

Total comments: 4

Patch Set 2 : rebased; move unittest from base/metrics/BUILD.gn to base/BUILD.gn #

Total comments: 3

Patch Set 3 : changed uint64 to uint64_t #

Total comments: 4

Patch Set 4 : fixed unittest #

Unified diffs Side-by-side diffs Delta from patch set Stats (+75 lines, -149 lines) Patch
M base/BUILD.gn View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M base/base.gyp View 1 chunk +1 line, -0 lines 0 comments Download
M base/base.gypi View 1 chunk +2 lines, -0 lines 0 comments Download
M base/metrics/BUILD.gn View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
A + base/metrics/metrics_hashes.h View 1 2 3 1 chunk +7 lines, -6 lines 0 comments Download
A + base/metrics/metrics_hashes.cc View 1 2 1 chunk +7 lines, -7 lines 0 comments Download
A + base/metrics/metrics_hashes_unittest.cc View 1 2 3 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/about_flags.cc View 1 3 chunks +2 lines, -2 lines 0 comments Download
M components/components_tests.gyp View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M components/metrics.gypi View 1 chunk +0 lines, -2 lines 0 comments Download
M components/metrics/BUILD.gn View 1 2 chunks +0 lines, -3 lines 0 comments Download
M components/metrics/call_stack_profile_metrics_provider.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M components/metrics/cloned_install_detector.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M components/metrics/histogram_encoder.cc View 2 chunks +2 lines, -2 lines 0 comments Download
D components/metrics/metrics_hashes.h View 1 chunk +0 lines, -20 lines 0 comments Download
D components/metrics/metrics_hashes.cc View 1 chunk +0 lines, -31 lines 0 comments Download
D components/metrics/metrics_hashes_unittest.cc View 1 chunk +0 lines, -31 lines 0 comments Download
M components/metrics/metrics_log.cc View 3 chunks +2 lines, -2 lines 0 comments Download
M components/metrics/metrics_service_unittest.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M components/metrics/profiler/profiler_metrics_provider_unittest.cc View 4 chunks +32 lines, -26 lines 0 comments Download
M components/rappor/rappor_service.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M components/rappor/rappor_service_unittest.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M components/rappor/sample.cc View 2 chunks +2 lines, -2 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 22 (8 generated)
bcwhite
5 years ago (2015-11-25 20:59:00 UTC) #3
Alexei Svitkine (slow)
You have some test failures. Otherwise looks good, have some comments below. https://codereview.chromium.org/1476633003/diff/1/base/metrics/BUILD.gn File base/metrics/BUILD.gn ...
5 years ago (2015-11-25 21:05:40 UTC) #4
bcwhite
A lot of builds are failing because the existing sys_byteorder.h includes files that aren't available ...
5 years ago (2015-11-25 22:58:26 UTC) #5
Alexei Svitkine (slow)
lgtm
5 years ago (2015-11-26 15:38:48 UTC) #6
bcwhite
mark@chromium.org: Please review changes in base/BUILD.gn base/base.gyp*
5 years ago (2015-11-26 19:15:20 UTC) #9
Mark Mentovai
https://codereview.chromium.org/1476633003/diff/40001/base/metrics/metrics_hashes.cc File base/metrics/metrics_hashes.cc (left): https://codereview.chromium.org/1476633003/diff/40001/base/metrics/metrics_hashes.cc#oldcode18 base/metrics/metrics_hashes.cc:18: DCHECK_GE(arraysize(digest.a), sizeof(value)); Oops! https://codereview.chromium.org/1476633003/diff/40001/base/metrics/metrics_hashes.h File base/metrics/metrics_hashes.h (right): https://codereview.chromium.org/1476633003/diff/40001/base/metrics/metrics_hashes.h#newcode17 base/metrics/metrics_hashes.h:17: ...
5 years ago (2015-11-30 18:49:57 UTC) #10
Mark Mentovai
LGTM with or without that change (but I’d prefer with)
5 years ago (2015-11-30 18:50:16 UTC) #11
bcwhite
https://codereview.chromium.org/1476633003/diff/40001/base/metrics/metrics_hashes.h File base/metrics/metrics_hashes.h (right): https://codereview.chromium.org/1476633003/diff/40001/base/metrics/metrics_hashes.h#newcode17 base/metrics/metrics_hashes.h:17: BASE_EXPORT uint64 HashMetricName(const std::string& name); On 2015/11/30 18:49:56, Mark ...
5 years ago (2015-11-30 19:13:20 UTC) #12
Mark Mentovai
LGTM https://codereview.chromium.org/1476633003/diff/60001/base/metrics/metrics_hashes.h File base/metrics/metrics_hashes.h (right): https://codereview.chromium.org/1476633003/diff/60001/base/metrics/metrics_hashes.h#newcode11 base/metrics/metrics_hashes.h:11: #include "base/basictypes.h" #include <stdint.h> instead of this. https://codereview.chromium.org/1476633003/diff/60001/base/metrics/metrics_hashes_unittest.cc ...
5 years ago (2015-11-30 19:20:23 UTC) #13
bcwhite
https://codereview.chromium.org/1476633003/diff/60001/base/metrics/metrics_hashes.h File base/metrics/metrics_hashes.h (right): https://codereview.chromium.org/1476633003/diff/60001/base/metrics/metrics_hashes.h#newcode11 base/metrics/metrics_hashes.h:11: #include "base/basictypes.h" On 2015/11/30 19:20:23, Mark Mentovai wrote: > ...
5 years ago (2015-11-30 20:07:47 UTC) #14
Mark Mentovai
LGTM
5 years ago (2015-11-30 20:24:54 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1476633003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1476633003/80001
5 years ago (2015-11-30 20:28:54 UTC) #18
commit-bot: I haz the power
Committed patchset #4 (id:80001)
5 years ago (2015-11-30 22:31:26 UTC) #20
commit-bot: I haz the power
5 years ago (2015-11-30 22:32:15 UTC) #22
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/502b229004bece63acb26aa53888626fddd0fccb
Cr-Commit-Position: refs/heads/master@{#362244}

Powered by Google App Engine
This is Rietveld 408576698