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

Issue 8368009: Replace most LOG statements with DLOG statements in base. (Closed)

Created:
9 years, 2 months ago by brettw
Modified:
9 years, 2 months ago
CC:
chromium-reviews, sadrul, brettw-cc_chromium.org, darin-cc_chromium.org, Paweł Hajdan Jr., pam+watch_chromium.org, jshin+watch_chromium.org
Visibility:
Public.

Description

Replace most LOG/CHECK statements with DLOG/DCHECK statements in base. I tried hard not to change CHECKs that had side effects. I kept fatal checks that seemed security or debugging-info (in crash reports) sensitive, and ones that seems particularly well-conceived. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=107042

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 13

Patch Set 4 : '' #

Total comments: 1

Patch Set 5 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+254 lines, -248 lines) Patch
M base/allocator/allocator_shim.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M base/allocator/allocator_unittests.cc View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
M base/android/jni_array.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M base/base_paths_linux.cc View 1 2 3 2 chunks +4 lines, -4 lines 0 comments Download
M base/command_line.cc View 1 2 3 2 chunks +4 lines, -4 lines 0 comments Download
M base/debug/debugger.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M base/debug/trace_event.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M base/dir_reader_posix_unittest.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M base/event_recorder_win.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M base/file_util.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M base/file_util.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M base/file_util_posix.cc View 1 2 3 12 chunks +31 lines, -31 lines 0 comments Download
M base/file_util_win.cc View 1 2 3 7 chunks +14 lines, -14 lines 0 comments Download
M base/files/file_path_watcher_mac.cc View 1 2 3 5 chunks +7 lines, -7 lines 0 comments Download
M base/files/file_path_watcher_win.cc View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
M base/global_descriptors_posix.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M base/i18n/icu_util.cc View 1 2 3 2 chunks +4 lines, -4 lines 0 comments Download
M base/i18n/time_formatting.cc View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
M base/linux_util.cc View 1 2 3 5 chunks +7 lines, -7 lines 0 comments Download
M base/mac/foundation_util.mm View 1 2 3 5 chunks +5 lines, -5 lines 0 comments Download
M base/mac/mac_util.mm View 1 2 3 18 chunks +21 lines, -21 lines 0 comments Download
M base/mac/objc_property_releaser.mm View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
M base/message_loop.cc View 1 2 3 8 chunks +8 lines, -8 lines 0 comments Download
M base/message_pump_glib.cc View 1 2 3 1 chunk +4 lines, -1 line 0 comments Download
M base/message_pump_libevent.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M base/message_pump_x.cc View 1 2 3 4 chunks +5 lines, -5 lines 0 comments Download
M base/metrics/histogram.cc View 1 2 3 5 chunks +6 lines, -6 lines 0 comments Download
M base/metrics/stats_table.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M base/mime_util_xdg.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M base/native_library_linux.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M base/process_linux.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M base/process_util_linux.cc View 1 2 3 8 chunks +10 lines, -9 lines 0 comments Download
M base/process_util_mac.mm View 1 2 3 14 chunks +15 lines, -15 lines 0 comments Download
M base/process_util_openbsd.cc View 1 2 3 4 chunks +4 lines, -4 lines 0 comments Download
MM base/process_util_posix.cc View 1 2 3 10 chunks +16 lines, -16 lines 0 comments Download
M base/process_util_win.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M base/rand_util_posix.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M base/scoped_temp_dir.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M base/sha1_win.cc View 1 2 3 3 chunks +9 lines, -7 lines 0 comments Download
M base/shared_memory_posix.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M base/shared_memory_win.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M base/sync_socket_posix.cc View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
M base/synchronization/condition_variable_win.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M base/system_monitor/system_monitor.cc View 1 2 3 1 chunk +4 lines, -4 lines 0 comments Download
M base/system_monitor/system_monitor_win.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M base/test/test_file_util_mac.cc View 1 2 3 1 chunk +5 lines, -5 lines 0 comments Download
M base/test/test_file_util_posix.cc View 1 2 3 3 chunks +8 lines, -8 lines 0 comments Download
M base/threading/non_thread_safe_unittest.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M base/threading/platform_thread_mac.mm View 1 2 3 4 chunks +4 lines, -4 lines 0 comments Download
M base/threading/platform_thread_posix.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M base/threading/simple_thread.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M base/threading/thread_checker_unittest.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M base/threading/thread_local_posix.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M base/threading/thread_local_win.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M base/vlog.cc View 1 2 3 1 chunk +6 lines, -6 lines 0 comments Download
M base/win/i18n.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 5 (0 generated)
brettw
This is not just a search and replace. In particular, we need to be wary ...
9 years, 2 months ago (2011-10-21 21:26:06 UTC) #1
jar (doing other things)
Nice pass on a lot of files. I made a bunch of comments below. Thanks, ...
9 years, 2 months ago (2011-10-23 00:36:28 UTC) #2
brettw
Thanks for the careful review. I addressed everything (I hope!).
9 years, 2 months ago (2011-10-23 02:32:58 UTC) #3
brettw
http://codereview.chromium.org/8368009/diff/7019/base/debug/trace_event_unittest.cc File base/debug/trace_event_unittest.cc (right): http://codereview.chromium.org/8368009/diff/7019/base/debug/trace_event_unittest.cc#newcode104 base/debug/trace_event_unittest.cc:104: ASSERT_TRUE(false); I just ended up reverting this file. The ...
9 years, 2 months ago (2011-10-23 02:53:50 UTC) #4
jar (doing other things)
9 years, 2 months ago (2011-10-23 15:58:00 UTC) #5
LGTM... but I could have missed something (a call with side effects).  Be sure
to watch the landing... as a revert may be needed.

Nice job!

Powered by Google App Engine
This is Rietveld 408576698