chromeos: provide ability to supply event for rewriting
EventRewriters don't honor the target, and so generally expect the root_location and location to be the same. This patch changes EventSource::SendEventToSink() to create a new Event if the existing has differing locations (and a target). BUG=817112 TEST=covered by tests Change-Id: Iaabe019fed4350610306576a054b7d395def92ff Reviewed-on: https://chromium-review.googlesource.com/956925Reviewed-by:Sadrul Chowdhury <sadrul@chromium.org> Reviewed-by:
Scott Violet <sky@chromium.org> Commit-Queue: Scott Violet <sky@chromium.org> Cr-Commit-Position: refs/heads/master@{#542653}
Showing
Please register or sign in to comment