Clean-up BrowserMessageFilter::Send.
Wrap the message in a unique_ptr to make sure it isn't leaked, if some branch doesn't pass it on to another sender or delete it. Also change a conditional NOTREACHED to a DCHECK following the style guide[1]. [1] chromium.googlesource.com/chromium/src/+/master/styleguide/c++/c++.md#check_dcheck_and-notreached Change-Id: I149d2b28d462be32b7170c0b8973fe74ad74ed6b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2507277Reviewed-by:Kinuko Yasuda <kinuko@chromium.org> Commit-Queue: Tal Pressman <talp@chromium.org> Cr-Commit-Position: refs/heads/master@{#822558}
Showing
Please register or sign in to comment