weblayer: adds support for attribution tagging
Android-R adds an attribution tag to Context. This tag can be used to identify what parts of an application are requesting/using services. Chrome code assumes a single Context, and for WebLayer that Context is the application context. WebLayer calls getApplicationContext() on the Context supplied to it. This means the attribution tag set on the Context supplied to WebLayer is lost. This patch changes WebLayer so that the attribution tag of the supplied Context is propagated to the Context used by Chrome/WebLayer. This gives the user of WebLayer a way to attribute usage of system services to WebLayer. BUG=1085041 TEST=none Change-Id: I65eeea60289e57d563875754231658466c37dddd Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2361022Reviewed-by:Clark DuVall <cduvall@chromium.org> Commit-Queue: Scott Violet <sky@chromium.org> Cr-Commit-Position: refs/heads/master@{#799600}
Showing
Please register or sign in to comment