[debug] fix NewInstanceWithSideEffectType dcheck for mode
The DCHECK was incorrect. This new API method can be called from any debug mode since the embedder does not know which mode we are in. It should only apply the side effect logic when the mode is kSideEffects. Bug: chromium:829571 Cq-Include-Trybots: luci.chromium.try:linux_chromium_rel_ng Change-Id: I11b0e5194b151a2b88171d6be21c3ccbba9cd408 Reviewed-on: https://chromium-review.googlesource.com/1046162Reviewed-by: Yang Guo <yangguo@chromium.org> Commit-Queue: Erik Luo <luoe@chromium.org> Cr-Commit-Position: refs/heads/master@{#53030}
Showing
Please
register
or
sign in
to comment