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

Issue 1851293002: Remove BLINK_ASSERT() and BLINK_ASSERT_NOT_REACHED() macros. (Closed)

Created:
4 years, 8 months ago by kotenkov
Modified:
4 years, 8 months ago
CC:
blink-reviews, blink-reviews-api_chromium.org, chromium-reviews, cmumford, dglazkov+blink, eric.carlson_apple.com, feature-media-reviews_chromium.org, jsbell+idb_chromium.org, kinuko+fileapi, mlamouri+watch-blink_chromium.org, nhiroki, philipj_slow, tzik
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove BLINK_ASSERT() and BLINK_ASSERT_NOT_REACHED() macros. BUG=596760 Committed: https://crrev.com/7104e93bb1a32ba3cd9e1d798d02a1f54cf0c0ff Cr-Commit-Position: refs/heads/master@{#386010}

Patch Set 1 #

Total comments: 5

Patch Set 2 : Use pure virtual methods instead of NOTREACHED(). #

Patch Set 3 : Include base/logging.h everywhere. #

Patch Set 4 : Remove remaining NOTREACHED() in public/web. #

Patch Set 5 : Fix compilation due to WebFrameClient. #

Patch Set 6 : Fix webkit_unit_tests compilation. #

Patch Set 7 : Fix gn compilation. #

Total comments: 3

Patch Set 8 : Implement checkIfAudioSinkExistsAndIsAuthorized in WebFrameClient. #

Total comments: 3

Patch Set 9 : Check the |callbacks| for nullptr and use explicit delete. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+129 lines, -209 lines) Patch
M content/renderer/service_worker/service_worker_context_client.h View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M content/renderer/service_worker/service_worker_context_client.cc View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
M content/test/mock_webblob_registry_impl.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M content/test/mock_webblob_registry_impl.cc View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
M media/blink/webmediaplayer_impl_unittest.cc View 1 2 3 4 3 chunks +2 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/modules/encryptedmedia/MediaKeyStatusMap.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/BUILD.gn View 1 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/blink_platform.gyp View 1 1 chunk +0 lines, -1 line 0 comments Download
D third_party/WebKit/Source/platform/exported/WebCommon.cpp View 1 1 chunk +0 lines, -43 lines 0 comments Download
M third_party/WebKit/Source/web/LinkHighlightImplTest.cpp View 1 2 3 4 5 1 chunk +1 line, -5 lines 0 comments Download
M third_party/WebKit/Source/web/WebEmbeddedWorkerImplTest.cpp View 1 2 3 4 5 1 chunk +10 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/WebSpeechGrammar.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/tests/ChromeClientImplTest.cpp View 1 2 3 4 5 2 chunks +1 line, -6 lines 0 comments Download
M third_party/WebKit/Source/web/tests/FrameLoaderClientImplTest.cpp View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/tests/LayoutGeometryMapTest.cpp View 1 2 3 4 5 2 chunks +1 line, -4 lines 0 comments Download
M third_party/WebKit/Source/web/tests/ProgrammaticScrollTest.cpp View 1 2 3 4 5 2 chunks +1 line, -4 lines 0 comments Download
M third_party/WebKit/Source/web/tests/VisualViewportTest.cpp View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/public/platform/DEPS View 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/public/platform/WebBlobRegistry.h View 1 2 3 2 chunks +8 lines, -8 lines 0 comments Download
M third_party/WebKit/public/platform/WebCommon.h View 1 2 1 chunk +0 lines, -17 lines 0 comments Download
M third_party/WebKit/public/platform/WebCryptoAlgorithmParams.h View 1 2 7 chunks +8 lines, -7 lines 0 comments Download
M third_party/WebKit/public/platform/WebFileSystem.h View 1 5 chunks +15 lines, -15 lines 0 comments Download
M third_party/WebKit/public/platform/WebMemoryAllocatorDump.h View 1 1 chunk +1 line, -5 lines 0 comments Download
M third_party/WebKit/public/platform/WebPrivateOwnPtr.h View 1 2 3 chunks +4 lines, -3 lines 0 comments Download
M third_party/WebKit/public/platform/WebPrivatePtr.h View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/public/platform/WebProcessMemoryDump.h View 1 3 chunks +13 lines, -51 lines 0 comments Download
M third_party/WebKit/public/platform/WebRTCKeyParams.h View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/public/platform/WebVector.h View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/public/platform/modules/indexeddb/WebIDBCursor.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/public/platform/modules/indexeddb/WebIDBDatabaseCallbacks.h View 1 1 chunk +4 lines, -4 lines 0 comments Download
M third_party/WebKit/public/platform/modules/indexeddb/WebIDBFactory.h View 1 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/public/platform/modules/serviceworker/WebServiceWorker.h View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/public/web/WebFrameClient.h View 1 2 3 4 5 6 7 8 1 chunk +7 lines, -1 line 0 comments Download
M third_party/WebKit/public/web/WebSpeechRecognizer.h View 1 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerContextClient.h View 1 2 3 2 chunks +10 lines, -10 lines 0 comments Download

Messages

Total messages: 32 (7 generated)
kotenkov
There is no info on BLINK_ASSERT* here, https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/TL0NkNXIT1w , but I assume that we can ...
4 years, 8 months ago (2016-04-03 19:18:16 UTC) #2
tkent
> There is no info on BLINK_ASSERT* here, https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/TL0NkNXIT1w , but I assume that we ...
4 years, 8 months ago (2016-04-03 22:59:06 UTC) #4
haraken
https://codereview.chromium.org/1851293002/diff/1/third_party/WebKit/public/platform/WebCommon.h File third_party/WebKit/public/platform/WebCommon.h (right): https://codereview.chromium.org/1851293002/diff/1/third_party/WebKit/public/platform/WebCommon.h#newcode78 third_party/WebKit/public/platform/WebCommon.h:78: #include "base/logging.h" On 2016/04/03 22:59:06, tkent wrote: > WebCommon.h ...
4 years, 8 months ago (2016-04-03 23:53:47 UTC) #6
kotenkov
https://codereview.chromium.org/1851293002/diff/1/third_party/WebKit/public/platform/WebCommon.h File third_party/WebKit/public/platform/WebCommon.h (right): https://codereview.chromium.org/1851293002/diff/1/third_party/WebKit/public/platform/WebCommon.h#newcode78 third_party/WebKit/public/platform/WebCommon.h:78: #include "base/logging.h" > To meet the requirements, maybe do ...
4 years, 8 months ago (2016-04-04 07:46:34 UTC) #7
tkent
https://codereview.chromium.org/1851293002/diff/1/third_party/WebKit/public/platform/WebCommon.h File third_party/WebKit/public/platform/WebCommon.h (right): https://codereview.chromium.org/1851293002/diff/1/third_party/WebKit/public/platform/WebCommon.h#newcode78 third_party/WebKit/public/platform/WebCommon.h:78: #include "base/logging.h" On 2016/04/04 at 07:46:34, kotenkov wrote: > ...
4 years, 8 months ago (2016-04-04 09:03:17 UTC) #8
esprehn
This still has NOTREACHED() for lots of things that should be pure virtual I think.
4 years, 8 months ago (2016-04-04 21:42:26 UTC) #9
kotenkov
On 2016/04/04 21:42:26, esprehn wrote: > This still has NOTREACHED() for lots of things that ...
4 years, 8 months ago (2016-04-05 05:47:46 UTC) #10
kotenkov
On 2016/04/05 05:47:46, kotenkov wrote: > On 2016/04/04 21:42:26, esprehn wrote: > > This still ...
4 years, 8 months ago (2016-04-06 05:37:50 UTC) #11
haraken
On 2016/04/06 05:37:50, kotenkov wrote: > On 2016/04/05 05:47:46, kotenkov wrote: > > On 2016/04/04 ...
4 years, 8 months ago (2016-04-06 05:39:16 UTC) #12
kotenkov
On 2016/04/06 05:39:16, haraken wrote: > On 2016/04/06 05:37:50, kotenkov wrote: > > On 2016/04/05 ...
4 years, 8 months ago (2016-04-06 06:29:54 UTC) #13
haraken
LGTM
4 years, 8 months ago (2016-04-06 06:38:18 UTC) #14
kotenkov
caitkp@chromium.org: Please review changes in components liberato@chromium.org: Please review changes in media sievers@chromium.org: Please review ...
4 years, 8 months ago (2016-04-06 07:10:49 UTC) #16
liberato (no reviews please)
https://codereview.chromium.org/1851293002/diff/120001/third_party/WebKit/public/web/WebFrameClient.h File third_party/WebKit/public/web/WebFrameClient.h (right): https://codereview.chromium.org/1851293002/diff/120001/third_party/WebKit/public/web/WebFrameClient.h#newcode724 third_party/WebKit/public/web/WebFrameClient.h:724: virtual void checkIfAudioSinkExistsAndIsAuthorized(const WebString& sinkId, const WebSecurityOrigin&, WebSetSinkIdCallbacks*) = ...
4 years, 8 months ago (2016-04-06 14:39:44 UTC) #17
no sievers
content lgtm https://codereview.chromium.org/1851293002/diff/120001/content/test/mock_webframeclient.h File content/test/mock_webframeclient.h (right): https://codereview.chromium.org/1851293002/diff/120001/content/test/mock_webframeclient.h#newcode12 content/test/mock_webframeclient.h:12: class MockWebFrameClient : public blink::WebFrameClient { nit: ...
4 years, 8 months ago (2016-04-06 17:26:28 UTC) #18
Cait (Slow)
components/ lgtm
4 years, 8 months ago (2016-04-06 17:28:22 UTC) #19
liberato (no reviews please)
On 2016/04/06 17:28:22, Cait wrote: > components/ lgtm media/ lgtm assuming that the answer to ...
4 years, 8 months ago (2016-04-06 18:04:42 UTC) #20
kotenkov
On 2016/04/06 18:04:42, liberato wrote: > On 2016/04/06 17:28:22, Cait wrote: > > components/ lgtm ...
4 years, 8 months ago (2016-04-06 18:07:57 UTC) #21
kotenkov
On 2016/04/06 18:07:57, kotenkov wrote: > On 2016/04/06 18:04:42, liberato wrote: > > On 2016/04/06 ...
4 years, 8 months ago (2016-04-06 19:29:45 UTC) #22
esprehn
https://codereview.chromium.org/1851293002/diff/140001/third_party/WebKit/public/web/WebFrameClient.h File third_party/WebKit/public/web/WebFrameClient.h (right): https://codereview.chromium.org/1851293002/diff/140001/third_party/WebKit/public/web/WebFrameClient.h#newcode728 third_party/WebKit/public/web/WebFrameClient.h:728: callback->onError(WebSetSinkIdError::NotSupported); this doesn't really do anything I think? You ...
4 years, 8 months ago (2016-04-06 20:02:02 UTC) #23
liberato (no reviews please)
https://codereview.chromium.org/1851293002/diff/140001/third_party/WebKit/public/web/WebFrameClient.h File third_party/WebKit/public/web/WebFrameClient.h (right): https://codereview.chromium.org/1851293002/diff/140001/third_party/WebKit/public/web/WebFrameClient.h#newcode728 third_party/WebKit/public/web/WebFrameClient.h:728: callback->onError(WebSetSinkIdError::NotSupported); On 2016/04/06 20:02:02, esprehn wrote: > this doesn't ...
4 years, 8 months ago (2016-04-06 21:02:34 UTC) #24
kotenkov
https://codereview.chromium.org/1851293002/diff/120001/third_party/WebKit/public/web/WebFrameClient.h File third_party/WebKit/public/web/WebFrameClient.h (right): https://codereview.chromium.org/1851293002/diff/120001/third_party/WebKit/public/web/WebFrameClient.h#newcode724 third_party/WebKit/public/web/WebFrameClient.h:724: virtual void checkIfAudioSinkExistsAndIsAuthorized(const WebString& sinkId, const WebSecurityOrigin&, WebSetSinkIdCallbacks*) = ...
4 years, 8 months ago (2016-04-07 06:03:28 UTC) #25
tkent
third_party/WebKit lgtm
4 years, 8 months ago (2016-04-07 23:51:05 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1851293002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1851293002/160001
4 years, 8 months ago (2016-04-08 05:28:49 UTC) #29
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 8 months ago (2016-04-08 06:52:21 UTC) #30
commit-bot: I haz the power
4 years, 8 months ago (2016-04-08 06:53:27 UTC) #32
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/7104e93bb1a32ba3cd9e1d798d02a1f54cf0c0ff
Cr-Commit-Position: refs/heads/master@{#386010}

Powered by Google App Engine
This is Rietveld 408576698