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

Issue 195973002: Change DCHECK_IS_ON() to DCHECK_IS_ON (Closed)

Created:
6 years, 9 months ago by Xianzhu
Modified:
6 years, 9 months ago
CC:
chromium-reviews, viettrungluu+watch_chromium.org, browser-components-watch_chromium.org, ben+mojo_chromium.org, tim+watch_chromium.org, extensions-reviews_chromium.org, cbentzel+watch_chromium.org, jar (doing other things), grt+watch_chromium.org, jam, abarth-chromium, joi+watch-content_chromium.org, darin-cc_chromium.org, chromium-apps-reviews_chromium.org, erikwright+watch_chromium.org, fischman+watch_chromium.org, haitaol+watch_chromium.org, feature-media-reviews_chromium.org, asvitkine+watch_chromium.org, piman+watch_chromium.org, darin (slow to review), maniscalco+watch_chromium.org, Ilya Sherman, tfarina, mcasas+watch_chromium.org, Aaron Boodman, ben+corewm_chromium.org, cc-bugs_chromium.org, wjia+watch_chromium.org, jshin+watch_chromium.org
Visibility:
Public.

Description

Change DCHECK_IS_ON() to DCHECK_IS_ON DCHECK_IS_ON has been a constant since r255987, and can be used in both if() and #if. It no more needs to be in function form. Converted 'if (DCHECK_IS_ON)' to '#if DCHECK_IS_ON' if proper. BUG=350462 TEST=build TBR=darin Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=257156

Patch Set 1 : #

Total comments: 1

Patch Set 2 : if() -> #if #

Total comments: 3

Patch Set 3 : Keep a comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+137 lines, -161 lines) Patch
M base/i18n/build_utf8_validator_tables.cc View 1 1 chunk +5 lines, -5 lines 0 comments Download
M base/logging.h View 2 chunks +11 lines, -15 lines 0 comments Download
M base/logging_unittest.cc View 1 1 chunk +16 lines, -16 lines 0 comments Download
M base/mac/mac_logging.h View 1 chunk +1 line, -1 line 0 comments Download
M base/metrics/histogram.h View 1 chunk +1 line, -1 line 0 comments Download
M base/prefs/pref_registry.cc View 1 chunk +5 lines, -7 lines 0 comments Download
M cc/layers/delegated_frame_provider.cc View 1 1 chunk +4 lines, -4 lines 0 comments Download
M cc/layers/picture_layer_impl.cc View 1 2 chunks +2 lines, -3 lines 0 comments Download
M cc/trees/tree_synchronizer.cc View 1 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/history/top_sites_cache.cc View 1 1 chunk +5 lines, -5 lines 0 comments Download
M chrome/common/logging_chrome.cc View 1 1 chunk +2 lines, -5 lines 0 comments Download
M chrome/installer/util/shell_util.cc View 1 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/renderer/extensions/chrome_v8_context.cc View 1 1 chunk +2 lines, -6 lines 0 comments Download
M chrome/renderer/extensions/chrome_v8_context_set.cc View 1 1 chunk +9 lines, -9 lines 0 comments Download
M chrome/renderer/extensions/logging_native_handler.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/extensions/logging_native_handler.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/common/gpu/media/gpu_video_decode_accelerator.cc View 1 2 2 chunks +8 lines, -20 lines 0 comments Download
M content/renderer/media/webmediaplayer_impl.cc View 1 1 chunk +5 lines, -5 lines 0 comments Download
M gpu/command_buffer/service/test_helper.cc View 1 1 chunk +5 lines, -5 lines 0 comments Download
M gpu/command_buffer/tests/gl_shared_resources_unittest.cc View 1 chunk +0 lines, -7 lines 0 comments Download
M mojo/system/dispatcher.cc View 1 1 chunk +5 lines, -2 lines 0 comments Download
M net/spdy/spdy_session.cc View 1 3 chunks +17 lines, -16 lines 0 comments Download
M net/spdy/spdy_write_queue.cc View 1 1 chunk +10 lines, -10 lines 0 comments Download
M sync/internal_api/http_bridge.cc View 1 3 chunks +9 lines, -3 lines 0 comments Download
M ui/gfx/font_list_impl.cc View 1 1 chunk +5 lines, -5 lines 0 comments Download
M ui/wm/core/input_method_event_filter.cc View 1 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 35 (0 generated)
Xianzhu
https://codereview.chromium.org/195973002/diff/40001/gpu/command_buffer/tests/gl_shared_resources_unittest.cc File gpu/command_buffer/tests/gl_shared_resources_unittest.cc (left): https://codereview.chromium.org/195973002/diff/40001/gpu/command_buffer/tests/gl_shared_resources_unittest.cc#oldcode20 gpu/command_buffer/tests/gl_shared_resources_unittest.cc:20: #if ENABLE_DCHECK Because ENABLE_DCHECK was an internal macro defined ...
6 years, 9 months ago (2014-03-11 23:57:17 UTC) #1
Nico
should this be #if defined(DCHECK_IS_ON) or #if DCHECK_IS_ON now, to make clear that this is ...
6 years, 9 months ago (2014-03-11 23:59:59 UTC) #2
Xianzhu
On 2014/03/11 23:59:59, Nico wrote: > should this be #if defined(DCHECK_IS_ON) or #if DCHECK_IS_ON now, ...
6 years, 9 months ago (2014-03-12 00:13:35 UTC) #3
Nico
Maybe that used to be controlled by a flag too? On Tue, Mar 11, 2014 ...
6 years, 9 months ago (2014-03-12 00:15:55 UTC) #4
Xianzhu
Done converting 'if (DCHECK_IS_ON)' to '#if DCHECK_IS_ON'.
6 years, 9 months ago (2014-03-12 01:03:42 UTC) #5
Nico
lgtm I hope this doesn't make any net code auto-merging harder. +rch to comment on ...
6 years, 9 months ago (2014-03-12 21:16:41 UTC) #6
Xianzhu
https://codereview.chromium.org/195973002/diff/60001/content/common/gpu/media/gpu_video_decode_accelerator.cc File content/common/gpu/media/gpu_video_decode_accelerator.cc (left): https://codereview.chromium.org/195973002/diff/60001/content/common/gpu/media/gpu_video_decode_accelerator.cc#oldcode58 content/common/gpu/media/gpu_video_decode_accelerator.cc:58: // A helper class that works like AutoLock but ...
6 years, 9 months ago (2014-03-12 21:39:12 UTC) #7
Xianzhu
darin@, would you comment on the impact of this CL on net code auto-merging?
6 years, 9 months ago (2014-03-13 16:14:17 UTC) #8
Ryan Hamilton
net/ LGTM. We never use this macro in shared code, so it's no problem.
6 years, 9 months ago (2014-03-13 16:32:09 UTC) #9
Xianzhu
The CQ bit was checked by wangxianzhu@chromium.org
6 years, 9 months ago (2014-03-13 16:38:25 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wangxianzhu@chromium.org/195973002/80001
6 years, 9 months ago (2014-03-13 16:39:51 UTC) #11
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-13 17:26:53 UTC) #12
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=55207
6 years, 9 months ago (2014-03-13 17:26:54 UTC) #13
Xianzhu
On 2014/03/13 16:14:17, Xianzhu wrote: > darin@, would you comment on the impact of this ...
6 years, 9 months ago (2014-03-13 17:58:26 UTC) #14
danakj
cc LGTM
6 years, 9 months ago (2014-03-13 18:04:38 UTC) #15
Nico
I think you can go ahead and land this TBR=darin. It's a very mechanical change.
6 years, 9 months ago (2014-03-13 20:18:42 UTC) #16
Peter Kasting
FWIW, if you guys think "#if X" is preferable to "#if defined(X)" for some reason, ...
6 years, 9 months ago (2014-03-13 20:21:22 UTC) #17
Nico
On Thu, Mar 13, 2014 at 1:21 PM, <pkasting@chromium.org> wrote: > FWIW, if you guys ...
6 years, 9 months ago (2014-03-13 20:23:47 UTC) #18
danakj
On Thu, Mar 13, 2014 at 4:23 PM, Nico Weber <thakis@chromium.org> wrote: > On Thu, ...
6 years, 9 months ago (2014-03-13 20:40:05 UTC) #19
Xianzhu
On 2014/03/13 20:40:05, danakj wrote: > On Thu, Mar 13, 2014 at 4:23 PM, Nico ...
6 years, 9 months ago (2014-03-13 21:11:36 UTC) #20
Nico
(akalin left chrome-team a few weeks ago.) On Thu, Mar 13, 2014 at 2:11 PM, ...
6 years, 9 months ago (2014-03-13 21:17:23 UTC) #21
Peter Kasting
On 2014/03/13 21:11:36, Xianzhu wrote: > I think we could change the above to: > ...
6 years, 9 months ago (2014-03-13 21:17:55 UTC) #22
Xianzhu
On 2014/03/13 21:17:55, Peter Kasting wrote: > On 2014/03/13 21:11:36, Xianzhu wrote: > > I ...
6 years, 9 months ago (2014-03-13 22:06:04 UTC) #23
Nico
On 2014/03/13 22:06:04, Xianzhu wrote: > On 2014/03/13 21:17:55, Peter Kasting wrote: > > On ...
6 years, 9 months ago (2014-03-13 22:57:43 UTC) #24
Peter Kasting
On 2014/03/13 22:57:43, Nico wrote: > I understood Peter's second message as "please ignore my ...
6 years, 9 months ago (2014-03-13 23:04:13 UTC) #25
Xianzhu
On 2014/03/13 23:04:13, Peter Kasting wrote: > On 2014/03/13 22:57:43, Nico wrote: > > I ...
6 years, 9 months ago (2014-03-14 00:00:53 UTC) #26
Xianzhu
The CQ bit was checked by wangxianzhu@chromium.org
6 years, 9 months ago (2014-03-14 00:01:04 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wangxianzhu@chromium.org/195973002/80001
6 years, 9 months ago (2014-03-14 00:02:19 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wangxianzhu@chromium.org/195973002/80001
6 years, 9 months ago (2014-03-14 00:28:03 UTC) #29
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-14 02:23:09 UTC) #30
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) telemetry_perf_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=237826
6 years, 9 months ago (2014-03-14 02:23:10 UTC) #31
danakj
The CQ bit was checked by danakj@chromium.org
6 years, 9 months ago (2014-03-14 17:09:43 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wangxianzhu@chromium.org/195973002/80001
6 years, 9 months ago (2014-03-14 17:10:03 UTC) #33
commit-bot: I haz the power
Change committed as 257156
6 years, 9 months ago (2014-03-14 18:39:57 UTC) #34
alfonsoandalon
6 years, 9 months ago (2014-03-21 20:17:25 UTC) #35
Message was sent while issue was closed.

          

Powered by Google App Engine
This is Rietveld 408576698