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

Issue 2373523003: Clean up sparse_histogram.h header (Closed)

Created:
4 years, 2 months ago by nikunjb1
Modified:
4 years, 2 months ago
CC:
asanka, asvitkine+watch_chromium.org, awdf+watch_chromium.org, cbentzel+watch_chromium.org, chrome-metric-team_google.com, chromium-apps-reviews_chromium.org, chromium-reviews, darin-cc_chromium.org, extensions-reviews_chromium.org, feature-media-reviews_chromium.org, gcasto+watchlist_chromium.org, grt+watch_chromium.org, jam, mlamouri+watch-notifications_chromium.org, mlamouri+watch-content_chromium.org, pam+watch_chromium.org, Peter Beverloo, piman+watch_chromium.org, posciak+watch_chromium.org, sync-reviews_chromium.org, vabr+watchlistpasswordmanager_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Clean up sparse_histogram.h header by moving UMA_HSITOGRAM_SPARSE_SLOWLY to histogram_macros.h Also modifying include in the repo which points to sparse_histogram.h to histogram_macros.h All changes to file not in base/metrics is for using histogram_macros.h instead of sparse_histogram.h We are doing this to consolidate header files and cleanup base/metrics externally usable histogram macros. BUG=650371 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel TBR=bartfab@chromium.org,mad@chromium.org,rogerta@chromium.org,gab@chromium.org,boliu@chromium.org,estade@chromium.org,juliatuttle@chromium.org,vmiura@chromium.org,dewittj@chromium.org,hajimehoshi@chromium.org,ncarter@chromium.orgsvaldez@chromium.org,pkasting@chromium.org,sehr@chromium.org,mkwst@chromium.org,treib@chromium.org,marcheu@chromium.org,zea@chromium.org,kinaba@chromium.org,torne@chromium.org,mtomasz@chromium.org,ccameron@chromium.org,eugenebut@chromium.org,dimich@chromium.org,mcasas@chromium.org,mek@chromium.org,agl@chromium.org Committed: https://crrev.com/ddaa36a20e8d517fb591f034fca5bc1b9a2d4d9d Cr-Commit-Position: refs/heads/master@{#426131}

Patch Set 1 #

Patch Set 2 : Move sparse histogram macros to histogram_macros.h #

Patch Set 3 : Clean up sparse_histogram.h header #

Patch Set 4 : Fixed unittest failures #

Patch Set 5 : Add additional file in depot which depend on sparse_histogram.h #

Total comments: 8

Patch Set 6 : Review Comment1 #

Patch Set 7 : merged #

Total comments: 2

Patch Set 8 : Rebase update on 10/04 #

Patch Set 9 : Rebase update on Oct 18 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+85 lines, -90 lines) Patch
M base/android/library_loader/library_loader_hooks.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M base/files/file_posix.cc View 1 chunk +1 line, -1 line 0 comments Download
M base/files/file_win.cc View 1 chunk +1 line, -1 line 0 comments Download
M base/metrics/histogram_macros.h View 1 2 3 4 5 6 7 8 2 chunks +15 lines, -5 lines 0 comments Download
M base/metrics/histogram_macros_internal.h View 1 2 3 4 5 6 7 2 chunks +13 lines, -0 lines 0 comments Download
M base/metrics/sparse_histogram.h View 1 chunk +3 lines, -31 lines 0 comments Download
M base/metrics/sparse_histogram_unittest.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/about_flags.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/bad_message.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/login/enrollment/enrollment_uma.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/download/download_danger_prompt.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/install_verification/win/install_verification.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/notifications/google_now_notification_stats_collector.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/safe_browsing/incident_reporting/module_integrity_verifier_win.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/supervised_user/supervised_user_resource_throttle.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/android/infobars/infobar_container_android.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/log_web_ui_url.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/web_applications/web_app_mac.mm View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/safe_browsing/file_type_policies.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/installer/util/shell_util.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M chromecast/browser/metrics/cast_stability_metrics_provider.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M components/domain_reliability/uploader.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/drive/resource_metadata_storage.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M components/infobars/core/infobar_container.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/language_usage_metrics/language_usage_metrics.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/nacl/browser/bad_message.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/password_manager/content/browser/bad_message.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M components/password_manager/core/browser/login_database_ios.cc View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M components/policy/core/common/policy_loader_win.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M components/policy/core/common/policy_statistics_collector.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/safe_browsing_db/prefix_set.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M components/safe_browsing_db/v4_protocol_manager_util.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M components/sync/device_info/device_count_metrics_provider.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M components/sync/engine_impl/attachments/attachment_uploader_impl.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M components/sync/engine_impl/commit.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M components/sync/engine_impl/process_updates_util.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M components/translate/core/browser/translate_ranker_metrics_provider.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M content/browser/bad_message.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/pepper/browser_ppapi_host_impl.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/common/sandbox_win.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/pepper/content_decryptor_delegate.cc View 1 chunk +1 line, -1 line 0 comments Download
M device/bluetooth/bluetooth_device_android.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M device/geolocation/network_location_request.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M device/serial/serial_device_enumerator_mac.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M device/serial/serial_device_enumerator_win.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M extensions/browser/bad_message.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M extensions/browser/extension_protocols.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M extensions/browser/updater/extension_downloader.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M google_apis/gaia/oauth2_access_token_fetcher_impl.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M google_apis/gcm/engine/connection_factory_impl.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M gpu/config/gpu_info_collector.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M ios/chrome/browser/net/ios_chrome_network_delegate.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M ios/chrome/browser/net/metrics_network_client.mm View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M media/filters/ffmpeg_glue.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/tools/quic/quic_simple_server_packet_writer.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M net/udp/udp_socket_posix.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M ui/display/win/screen_win.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M ui/gl/angle_platform_impl.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 81 (53 generated)
nikunjb1
Move sparse histogram macros to histogram_macros.h
4 years, 2 months ago (2016-09-29 18:31:10 UTC) #28
rkaplow
https://codereview.chromium.org/2373523003/diff/80001/base/metrics/histogram_macros.h File base/metrics/histogram_macros.h (right): https://codereview.chromium.org/2373523003/diff/80001/base/metrics/histogram_macros.h#newcode227 base/metrics/histogram_macros.h:227: // Sparse histograms are well suited for recording counts ...
4 years, 2 months ago (2016-09-30 14:55:00 UTC) #29
nikunjb1
https://codereview.chromium.org/2373523003/diff/80001/base/metrics/histogram_macros.h File base/metrics/histogram_macros.h (right): https://codereview.chromium.org/2373523003/diff/80001/base/metrics/histogram_macros.h#newcode227 base/metrics/histogram_macros.h:227: // Sparse histograms are well suited for recording counts ...
4 years, 2 months ago (2016-10-03 22:25:42 UTC) #30
rkaplow
lgtm https://codereview.chromium.org/2373523003/diff/120001/base/metrics/histogram_macros_internal.h File base/metrics/histogram_macros_internal.h (right): https://codereview.chromium.org/2373523003/diff/120001/base/metrics/histogram_macros_internal.h#newcode133 base/metrics/histogram_macros_internal.h:133: // The implementation more costly to add values ...
4 years, 2 months ago (2016-10-04 17:04:51 UTC) #39
nikunjb1
Adding OWNERS from rc/OWNERS because the change touch .cc files across multiple projects. https://codereview.chromium.org/2373523003/diff/120001/base/metrics/histogram_macros_internal.h File ...
4 years, 2 months ago (2016-10-05 23:52:35 UTC) #46
rkaplow
On 2016/10/05 23:52:35, nikunjb1 wrote: > Adding OWNERS from rc/OWNERS because the change touch .cc ...
4 years, 2 months ago (2016-10-18 14:35:06 UTC) #47
asanka
Drive by: Could you make sure the first line of the CL description is a ...
4 years, 2 months ago (2016-10-18 15:21:26 UTC) #48
nikunjb1
On 2016/10/18 15:21:26, asanka wrote: > Drive by: > > Could you make sure the ...
4 years, 2 months ago (2016-10-18 21:52:59 UTC) #52
nikunjb1
Adding reviewers from OWNERS of files touched in the CL. Note that the only change ...
4 years, 2 months ago (2016-10-18 22:50:32 UTC) #55
xhwang
On 2016/10/18 22:50:32, nikunjb1 wrote: > Adding reviewers from OWNERS of files touched in the ...
4 years, 2 months ago (2016-10-18 22:59:09 UTC) #56
vakh (use Gerrit instead)
lgtm for components/safe_browsing_db/
4 years, 2 months ago (2016-10-18 23:03:57 UTC) #57
tapted
web_app_mac.mm lgtm
4 years, 2 months ago (2016-10-18 23:05:03 UTC) #58
satorux1
c/b/chromeos and components/drive lgtm
4 years, 2 months ago (2016-10-18 23:07:34 UTC) #59
Ted C
On 2016/10/18 23:07:34, satorux1 wrote: > c/b/chromeos and components/drive lgtm android lgtm
4 years, 2 months ago (2016-10-18 23:28:36 UTC) #60
scheib
LGTM
4 years, 2 months ago (2016-10-18 23:30:24 UTC) #61
Scott Hess - ex-Googler
lgtm
4 years, 2 months ago (2016-10-18 23:36:05 UTC) #64
Ken Rockot(use gerrit already)
lgtm
4 years, 2 months ago (2016-10-18 23:43:03 UTC) #65
slan
On 2016/10/18 23:43:03, Ken Rockot wrote: > lgtm rs lgtm
4 years, 2 months ago (2016-10-18 23:44:46 UTC) #66
dcheng
//base LGTM
4 years, 2 months ago (2016-10-18 23:46:25 UTC) #67
bbudge
lgtm
4 years, 2 months ago (2016-10-19 00:06:08 UTC) #68
kinaba
lgtm
4 years, 2 months ago (2016-10-19 00:16:05 UTC) #70
Peter Kasting
Some hopefully-useful tips: For purely-mechanical changes, it's not only OK but preferable to TBR individual ...
4 years, 2 months ago (2016-10-19 01:17:48 UTC) #73
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/2373523003/160001
4 years, 2 months ago (2016-10-19 01:33:20 UTC) #74
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 2 months ago (2016-10-19 04:13:34 UTC) #76
ncarter (slow)
content/ and chrome/browser/bad_message lgtm
4 years, 2 months ago (2016-10-19 17:22:55 UTC) #77
dewittj
c/b/notifications lgtm
4 years, 2 months ago (2016-10-19 17:26:37 UTC) #78
gab
On 2016/10/19 01:17:48, Peter Kasting wrote: > Some hopefully-useful tips: > > For purely-mechanical changes, ...
4 years, 2 months ago (2016-10-19 18:26:25 UTC) #79
commit-bot: I haz the power
4 years, 2 months ago (2016-10-21 13:06:20 UTC) #81
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/ddaa36a20e8d517fb591f034fca5bc1b9a2d4d9d
Cr-Commit-Position: refs/heads/master@{#426131}

Powered by Google App Engine
This is Rietveld 408576698