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

Issue 2530323002: Replace boolean return value SharedBuffer::getAsBytes with DCHECK (Closed)

Created:
4 years ago by yhirano
Modified:
4 years ago
CC:
chromium-reviews, blink-reviews, tyoshino+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Replace boolean return value SharedBuffer::getAsBytes with DCHECK SharedBuffer::getAsBytes returns false on failure, but XHR, the only caller, calls it in a situation where it never fails. BUG=None R=tyoshino@chromium.org, hiroshige@chromium.org Committed: https://crrev.com/32fb9a2770ad1d1b427b3d56351187b5c1d7f25d Cr-Commit-Position: refs/heads/master@{#434977}

Patch Set 1 #

Total comments: 1

Patch Set 2 : done #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -16 lines) Patch
M third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.cpp View 1 1 chunk +2 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/platform/SharedBuffer.h View 1 1 chunk +6 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/platform/SharedBufferTest.cpp View 1 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 30 (18 generated)
yhirano
See https://groups.google.com/a/chromium.org/forum/?utm_medium=email&utm_source=footer#!msg/platform-architecture-dev/MP0k9WGnCjA/zIBiJtilBwAJ.
4 years ago (2016-11-28 03:34:15 UTC) #3
tyoshino (SeeGerritForStatus)
https://codereview.chromium.org/2530323002/diff/1/third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.cpp File third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.cpp (right): https://codereview.chromium.org/2530323002/diff/1/third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.cpp#newcode394 third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.cpp:394: OOM_CRASH(); This comment was correct when it was written. ...
4 years ago (2016-11-28 05:29:33 UTC) #6
yhirano
On 2016/11/28 05:29:33, tyoshino wrote: > https://codereview.chromium.org/2530323002/diff/1/third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.cpp > File third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.cpp (right): > > https://codereview.chromium.org/2530323002/diff/1/third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.cpp#newcode394 > ...
4 years ago (2016-11-28 08:11:41 UTC) #12
tyoshino (SeeGerritForStatus)
lgtm
4 years ago (2016-11-28 08:57:27 UTC) #13
hiroshige
lgtm
4 years ago (2016-11-29 08:09:04 UTC) #16
yhirano
+haraken@ for OWNER review.
4 years ago (2016-11-29 08:10:46 UTC) #18
haraken
LGTM
4 years ago (2016-11-29 09:24:13 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2530323002/20001
4 years ago (2016-11-29 10:10:33 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/346185)
4 years ago (2016-11-29 12:11:45 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2530323002/20001
4 years ago (2016-11-29 12:16:50 UTC) #25
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years ago (2016-11-29 13:52:29 UTC) #28
commit-bot: I haz the power
4 years ago (2016-11-29 13:54:44 UTC) #30
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/32fb9a2770ad1d1b427b3d56351187b5c1d7f25d
Cr-Commit-Position: refs/heads/master@{#434977}

Powered by Google App Engine
This is Rietveld 408576698