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

Issue 2628843002: Match only prefixes of histogram names. (Closed)

Created:
3 years, 11 months ago by pkalinnikov
Modified:
3 years, 11 months ago
CC:
chromium-reviews, vmpstr+watch_chromium.org, engedy, melandory, rkaplow
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Match only prefixes of histogram names. Fix the bug that HistogramTester::GetTotalCountsForPrefix returns histograms which contain the query string as substrings, not as prefixes. Additionally, omit explicit base:: namespace here and there, because the files are already in this namespace. BUG=659977 Review-Url: https://codereview.chromium.org/2628843002 Cr-Commit-Position: refs/heads/master@{#443620} Committed: https://chromium.googlesource.com/chromium/src/+/63e22b6fcb629ebccc0f257de04bc8e7f4ef247c

Patch Set 1 #

Patch Set 2 : Add expectation. #

Total comments: 9

Patch Set 3 : Address comments of isherman@; omit explicit namespace. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+57 lines, -60 lines) Patch
M base/test/histogram_tester.h View 1 2 6 chunks +18 lines, -18 lines 0 comments Download
M base/test/histogram_tester.cc View 1 2 7 chunks +33 lines, -37 lines 0 comments Download
M base/test/histogram_tester_unittest.cc View 1 2 2 chunks +6 lines, -5 lines 0 comments Download

Messages

Total messages: 25 (17 generated)
pkalinnikov
Hi Pawel, Please review the change.
3 years, 11 months ago (2017-01-11 12:29:30 UTC) #2
Paweł Hajdan Jr.
https://codereview.chromium.org/2628843002/diff/20001/base/test/histogram_tester.cc File base/test/histogram_tester.cc (right): https://codereview.chromium.org/2628843002/diff/20001/base/test/histogram_tester.cc#newcode111 base/test/histogram_tester.cc:111: // Find matches by using the prefix-matching logic built ...
3 years, 11 months ago (2017-01-11 20:45:00 UTC) #8
pkalinnikov
Hi Ilya and Robert, Could you please address Pawel's comment in "histogram_tester.cc"? Would it be ...
3 years, 11 months ago (2017-01-12 11:16:31 UTC) #10
Ilya Sherman
LGTM; this seems like a fine approach. Some nits inline: https://codereview.chromium.org/2628843002/diff/20001/base/test/histogram_tester.cc File base/test/histogram_tester.cc (right): https://codereview.chromium.org/2628843002/diff/20001/base/test/histogram_tester.cc#newcode106 ...
3 years, 11 months ago (2017-01-12 20:32:42 UTC) #11
pkalinnikov
PTAL again. https://codereview.chromium.org/2628843002/diff/20001/base/test/histogram_tester.cc File base/test/histogram_tester.cc (right): https://codereview.chromium.org/2628843002/diff/20001/base/test/histogram_tester.cc#newcode106 base/test/histogram_tester.cc:106: const std::string& query) const { On 2017/01/12 ...
3 years, 11 months ago (2017-01-13 10:28:59 UTC) #13
Paweł Hajdan Jr.
LGTM Thanks for review, Ilya. Nice cleanup. :)
3 years, 11 months ago (2017-01-13 16:43:30 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2628843002/40001
3 years, 11 months ago (2017-01-13 18:25:21 UTC) #22
commit-bot: I haz the power
3 years, 11 months ago (2017-01-13 18:31:19 UTC) #25
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/63e22b6fcb629ebccc0f257de04b...

Powered by Google App Engine
This is Rietveld 408576698