Chromium Code Reviews
DescriptionAdd ICUError to handle ICU failures
ICU reports its memory allocation failure through UErrorCode, while
Blink would like to crash the renderer using OOM_CRASH()[1].
ICUError provides the unified way to handle ICU errors in Blink.
In this CL, all failures lead to the render crash, just differently by
the error type. We may add lighter methods, such as to crash only if
critical, or to ignore certain types, if needed in future.
[1] https://groups.google.com/a/chromium.org/d/msg/platform-architecture-dev/MP0k9WGnCjA/zIBiJtilBwAJ
Committed: https://crrev.com/9a878afefb2ffcad5f064b8715e3bf625e77c4e5
Cr-Commit-Position: refs/heads/master@{#434662}
Patch Set 1 #Patch Set 2 : #Patch Set 3 : Made conservative #Patch Set 4 : Destructor calls crashIfCritical #Patch Set 5 : eae review, add invalid argument error #
Messages
Total messages: 36 (27 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||