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

Issue 28046: Use string for Histogram names since these are all ASCII anyway wide-characte... (Closed)

Created:
11 years, 10 months ago by dsh
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Use string for Histogram names since these are all ASCII anyway. Wide-character literals cause problems between platforms. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=10276

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Total comments: 2

Patch Set 5 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+217 lines, -235 lines) Patch
M base/histogram.h View 1 2 3 4 5 chunks +6 lines, -7 lines 0 comments Download
M base/histogram.cc View 1 2 3 4 5 chunks +9 lines, -10 lines 0 comments Download
M base/histogram_unittest.cc View 1 2 3 4 9 chunks +29 lines, -32 lines 0 comments Download
M base/message_loop.cc View 1 2 3 4 1 chunk +5 lines, -5 lines 0 comments Download
M base/message_pump_win.cc View 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M base/process_util_win.cc View 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/autocomplete/history_contents_provider.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/autocomplete/history_url_provider.cc View 2 3 4 2 chunks +1 line, -2 lines 0 comments Download
M chrome/browser/browser_init.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/browser_shutdown.cc View 1 2 3 4 2 chunks +12 lines, -12 lines 0 comments Download
M chrome/browser/chrome_plugin_host.cc View 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/dom_ui/new_tab_ui.cc View 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/history/history_backend.cc View 1 2 3 4 5 chunks +4 lines, -5 lines 0 comments Download
M chrome/browser/history/text_database_manager.cc View 1 2 3 4 2 chunks +1 line, -2 lines 0 comments Download
M chrome/browser/jankometer.cc View 2 3 4 2 chunks +4 lines, -5 lines 0 comments Download
M chrome/browser/memory_details.cc View 2 3 4 1 chunk +8 lines, -8 lines 0 comments Download
M chrome/browser/metrics/metrics_service.cc View 1 2 3 4 4 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/net/dns_host_info.cc View 1 2 3 4 7 chunks +9 lines, -10 lines 0 comments Download
M chrome/browser/net/dns_master.cc View 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/renderer_host/buffered_resource_handler.cc View 1 2 3 4 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/renderer_host/render_widget_host.cc View 1 2 3 4 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/renderer_host/render_widget_host_view_mac.mm View 2 3 4 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/renderer_host/render_widget_host_view_win.cc View 2 3 4 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/renderer_host/resource_message_filter.cc View 1 2 3 4 2 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/safe_browsing/protocol_manager.cc View 1 2 3 4 4 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_database_bloom.cc View 1 2 3 4 4 chunks +11 lines, -11 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_service.cc View 1 2 3 4 6 chunks +9 lines, -9 lines 0 comments Download
M chrome/browser/sessions/session_backend.cc View 1 2 3 4 3 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/spellchecker.cc View 1 2 3 4 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/common/chrome_plugin_lib.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/ipc_channel_win.cc View 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/user_script_slave.cc View 1 2 3 4 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/views/focus_manager.cc View 2 3 4 2 chunks +1 line, -2 lines 0 comments Download
M net/base/connection_type_histograms.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M net/base/file_stream_win.cc View 2 3 4 2 chunks +1 line, -2 lines 0 comments Download
M net/base/mime_sniffer.cc View 1 2 3 4 9 chunks +8 lines, -9 lines 0 comments Download
M net/base/sdch_filter.cc View 1 2 3 4 2 chunks +12 lines, -12 lines 0 comments Download
M net/base/sdch_manager.cc View 1 2 3 4 3 chunks +3 lines, -3 lines 0 comments Download
M net/base/x509_certificate.cc View 1 2 3 4 2 chunks +1 line, -2 lines 0 comments Download
M net/disk_cache/backend_impl.cc View 1 2 3 4 4 chunks +6 lines, -6 lines 0 comments Download
M net/disk_cache/block_files.cc View 1 2 3 4 3 chunks +3 lines, -3 lines 0 comments Download
M net/disk_cache/entry_impl.cc View 1 2 3 4 5 chunks +5 lines, -6 lines 0 comments Download
M net/disk_cache/eviction.cc View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download
M net/disk_cache/rankings.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M net/disk_cache/stats.cc View 1 2 3 4 2 chunks +1 line, -2 lines 0 comments Download
M net/disk_cache/stats_histogram.h View 1 2 3 4 2 chunks +1 line, -2 lines 0 comments Download
M net/http/http_network_transaction.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M net/proxy/proxy_resolver_winhttp.cc View 2 3 4 2 chunks +2 lines, -3 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
dsh
I don't know who should review this. Feel free to pass it along if you ...
11 years, 10 months ago (2009-02-24 00:31:11 UTC) #1
brettw
You should use const char* instead of std::string. A typical call is like this: UMA_HISTOGRAM_COUNTS(L"SB2.BuildWriteBytes", ...
11 years, 10 months ago (2009-02-24 00:59:13 UTC) #2
dsh
11 years, 10 months ago (2009-02-24 08:19:30 UTC) #3
jar (doing other things)
The use of wide strings was (historically) done to mate with the base class Stats. ...
11 years, 10 months ago (2009-02-24 17:27:21 UTC) #4
dsh
Thanks! Fixed. Actually, I think the indentation was a little weird before, but I've made ...
11 years, 10 months ago (2009-02-24 18:38:02 UTC) #5
jar (doing other things)
11 years, 10 months ago (2009-02-24 19:08:54 UTC) #6
LGTM

Caveat landor:

(Sorry if this is obvious...)

Be sure to sync just before you land, and then try to build, or you'll likely
break the tree, as this touches a lot of code. I'd suggest landing this late at
night when the tree is "moving very slowly."

Powered by Google App Engine
This is Rietveld 408576698