Check whether ToString()'s result is empty in AdTracker::Will()
While AdTracker::Will() already checks if |resource_name| is empty, in rare situations, the subsequent call to ToString() can still return an empty result. This is the cause of a rare crash. To fix this, we check whether the result is empty; if it is, we treat it in the same was as an empty |resource_name|. Bug: 1086832 Change-Id: Ie9d3a865c5a588a34f94034d55bba1ae67e6895e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2225282Reviewed-by:Josh Karlin <jkarlin@chromium.org> Reviewed-by:
Nate Chapin <japhet@chromium.org> Commit-Queue: Alex Turner <alexmt@chromium.org> Cr-Commit-Position: refs/heads/master@{#775833}
Showing
Please register or sign in to comment