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

Issue 1807853003: Deprecate some macros in wtf/Assertions.h in favor of base/logging.h (Closed)

Created:
4 years, 9 months ago by tkent
Modified:
4 years, 9 months ago
Reviewers:
esprehn, xhwang, Nico
CC:
blink-reviews, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Deprecate some macros in wtf/Assertions.h in favor of base/logging.h - We may use *CHECK* macros instead of *ASSERT* macros. - We may use *LOG* macros instead of WTF_LOG. - Update the following files as examples: - HashTable.h - RefCountedLeakCounter.cpp It uses VLOG(0) because the log channel was enabled by default. - StringBuilder.* - TextCodecICU.cpp - TextEncodingRegistry.cpp - Move WTFTestPrinters implementation to WTFString.cpp and AtomicString.cpp in order to pass String and AtomicString to base/logging macros. Also, this CL removes wtf_unittest_helpers build target. This CL has no behavior changes. Committed: https://crrev.com/d4640bcf2f2502deb74c019e40d1cd1ae32da64d Cr-Commit-Position: refs/heads/master@{#381919}

Patch Set 1 #

Patch Set 2 : Many updates #

Total comments: 6

Patch Set 3 : Add RELEASE_NOTREACHED, improve String printer #

Patch Set 4 : rebase #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+145 lines, -323 lines) Patch
M third_party/WebKit/Source/core/BUILD.gn View 1 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/core.gyp View 1 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/BUILD.gn View 1 2 chunks +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/blink_platform_tests.gyp View 1 2 chunks +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/BUILD.gn View 1 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/web.gyp View 1 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/web_tests.gyp View 1 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/wtf/Assertions.h View 1 2 3 8 chunks +26 lines, -16 lines 0 comments Download
M third_party/WebKit/Source/wtf/BUILD.gn View 1 2 chunks +0 lines, -20 lines 0 comments Download
M third_party/WebKit/Source/wtf/DEPS View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/wtf/HashTable.h View 1 1 chunk +2 lines, -1 line 3 comments Download
M third_party/WebKit/Source/wtf/RefCountedLeakCounter.cpp View 1 2 chunks +1 line, -4 lines 0 comments Download
D third_party/WebKit/Source/wtf/testing/WTFTestPrinters.cpp View 1 1 chunk +0 lines, -85 lines 0 comments Download
D third_party/WebKit/Source/wtf/testing/WTFTestPrintersTest.cpp View 1 1 chunk +0 lines, -68 lines 0 comments Download
D third_party/WebKit/Source/wtf/testing/WTFUnitTestHelpersExport.h View 1 1 chunk +0 lines, -53 lines 0 comments Download
M third_party/WebKit/Source/wtf/text/AtomicString.h View 1 2 chunks +2 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/wtf/text/AtomicString.cpp View 1 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/wtf/text/StringBuilder.h View 1 3 chunks +7 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/wtf/text/StringBuilder.cpp View 1 15 chunks +28 lines, -27 lines 0 comments Download
M third_party/WebKit/Source/wtf/text/TextCodecICU.cpp View 1 2 chunks +2 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/wtf/text/TextEncodingRegistry.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/wtf/text/WTFString.h View 1 2 2 chunks +2 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/wtf/text/WTFString.cpp View 1 2 1 chunk +43 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/wtf/text/WTFStringTest.cpp View 1 1 chunk +25 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/wtf/wtf.gypi View 1 2 3 2 chunks +0 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/wtf/wtf_tests.gyp View 1 2 chunks +0 lines, -17 lines 0 comments Download

Messages

Total messages: 39 (13 generated)
tkent
esprehn@, would you review this please?
4 years, 9 months ago (2016-03-17 08:30:45 UTC) #2
esprehn
Why do you want to do this? Changing deps without. Source doesn't make sense.
4 years, 9 months ago (2016-03-17 15:29:54 UTC) #3
tkent
On 2016/03/17 at 15:29:54, esprehn wrote: > Why do you want to do this? Changing ...
4 years, 9 months ago (2016-03-17 20:53:43 UTC) #4
esprehn
On 2016/03/17 at 20:53:43, tkent wrote: > On 2016/03/17 at 15:29:54, esprehn wrote: > > ...
4 years, 9 months ago (2016-03-17 22:52:57 UTC) #5
tkent
> I think we want a WTF wrapper around this, we probably want macros to ...
4 years, 9 months ago (2016-03-18 02:40:40 UTC) #9
esprehn
On 2016/03/18 at 02:40:40, tkent wrote: > > I think we want a WTF wrapper ...
4 years, 9 months ago (2016-03-18 04:58:25 UTC) #10
esprehn
https://codereview.chromium.org/1807853003/diff/40001/third_party/WebKit/Source/wtf/Assertions.h File third_party/WebKit/Source/wtf/Assertions.h (right): https://codereview.chromium.org/1807853003/diff/40001/third_party/WebKit/Source/wtf/Assertions.h#newcode310 third_party/WebKit/Source/wtf/Assertions.h:310: // ALLOW_UNUSED_LOCAL(). Why do you need to use ALLOW_UNUSED_LOCAL ...
4 years, 9 months ago (2016-03-18 04:58:31 UTC) #11
tkent
I uploaded a new patch. https://codereview.chromium.org/1807853003/diff/40001/third_party/WebKit/Source/wtf/Assertions.h File third_party/WebKit/Source/wtf/Assertions.h (right): https://codereview.chromium.org/1807853003/diff/40001/third_party/WebKit/Source/wtf/Assertions.h#newcode310 third_party/WebKit/Source/wtf/Assertions.h:310: // ALLOW_UNUSED_LOCAL(). On 2016/03/18 ...
4 years, 9 months ago (2016-03-18 05:19:21 UTC) #12
esprehn
lgtm
4 years, 9 months ago (2016-03-18 05:20:55 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1807853003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1807853003/60001
4 years, 9 months ago (2016-03-18 06:17:51 UTC) #16
commit-bot: I haz the power
Failed to apply patch for third_party/WebKit/Source/wtf/Assertions.h: While running git apply --index -3 -p1; error: patch ...
4 years, 9 months ago (2016-03-18 07:33:24 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1807853003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1807853003/80001
4 years, 9 months ago (2016-03-18 07:45:44 UTC) #22
commit-bot: I haz the power
Committed patchset #4 (id:80001)
4 years, 9 months ago (2016-03-18 09:32:11 UTC) #23
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/d4640bcf2f2502deb74c019e40d1cd1ae32da64d Cr-Commit-Position: refs/heads/master@{#381919}
4 years, 9 months ago (2016-03-18 09:33:27 UTC) #25
Nico
https://codereview.chromium.org/1807853003/diff/80001/third_party/WebKit/Source/wtf/HashTable.h File third_party/WebKit/Source/wtf/HashTable.h (right): https://codereview.chromium.org/1807853003/diff/80001/third_party/WebKit/Source/wtf/HashTable.h#newcode290 third_party/WebKit/Source/wtf/HashTable.h:290: ALLOW_UNUSED_LOCAL(container); Is this needed? container is used (assigned to ...
4 years, 9 months ago (2016-03-18 14:34:25 UTC) #27
xhwang
Is there a bug to track the migration work in our codebase?
4 years, 9 months ago (2016-03-21 17:03:25 UTC) #29
xhwang
Also, is this only for third_party/WebKit/Source/wtf? Can I use base/logging.h in third_party/WebKit/Source/modules?
4 years, 9 months ago (2016-03-21 17:26:10 UTC) #30
tkent
> Is there a bug to track the migration work in our codebase? I filed ...
4 years, 9 months ago (2016-03-22 02:09:34 UTC) #31
Nico
https://codereview.chromium.org/1807853003/diff/80001/third_party/WebKit/Source/wtf/HashTable.h File third_party/WebKit/Source/wtf/HashTable.h (right): https://codereview.chromium.org/1807853003/diff/80001/third_party/WebKit/Source/wtf/HashTable.h#newcode290 third_party/WebKit/Source/wtf/HashTable.h:290: ALLOW_UNUSED_LOCAL(container); On 2016/03/18 14:34:25, Nico wrote: > Is this ...
4 years, 9 months ago (2016-03-22 02:56:21 UTC) #32
tkent
On 2016/03/22 at 02:56:21, thakis wrote: > https://codereview.chromium.org/1807853003/diff/80001/third_party/WebKit/Source/wtf/HashTable.h > File third_party/WebKit/Source/wtf/HashTable.h (right): > > https://codereview.chromium.org/1807853003/diff/80001/third_party/WebKit/Source/wtf/HashTable.h#newcode290 ...
4 years, 9 months ago (2016-03-22 03:04:17 UTC) #33
tkent
https://codereview.chromium.org/1807853003/diff/80001/third_party/WebKit/Source/wtf/HashTable.h File third_party/WebKit/Source/wtf/HashTable.h (right): https://codereview.chromium.org/1807853003/diff/80001/third_party/WebKit/Source/wtf/HashTable.h#newcode290 third_party/WebKit/Source/wtf/HashTable.h:290: ALLOW_UNUSED_LOCAL(container); On 2016/03/18 at 14:34:25, Nico wrote: > Is ...
4 years, 9 months ago (2016-03-22 03:04:22 UTC) #34
xhwang
On 2016/03/22 02:09:34, tkent wrote: > > Is there a bug to track the migration ...
4 years, 9 months ago (2016-03-22 17:03:37 UTC) #35
esprehn
On 2016/03/22 at 17:03:37, xhwang wrote: > On 2016/03/22 02:09:34, tkent wrote: > > > ...
4 years, 9 months ago (2016-03-22 18:09:01 UTC) #36
xhwang
On 2016/03/22 18:09:01, esprehn wrote: > On 2016/03/22 at 17:03:37, xhwang wrote: > > On ...
4 years, 9 months ago (2016-03-22 18:25:06 UTC) #37
tkent
On 2016/03/22 at 18:25:06, xhwang wrote: > Maybe I should ask my question more directly ...
4 years, 9 months ago (2016-03-22 20:37:31 UTC) #38
esprehn
4 years, 9 months ago (2016-03-22 21:08:42 UTC) #39
Message was sent while issue was closed.
Blink has appendByteAsHex, we can add a StringToHex method to the HexNumber.h
header if needed.

Powered by Google App Engine
This is Rietveld 408576698