Merge "Optimize AttributionSource tokens - base" into sc-dev am: 2b90cc827b

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15247205

Change-Id: Id2435469fff42a22018a0d08370a987a76eb42b4
This commit is contained in:
TreeHugger Robot
2021-07-12 20:30:07 +00:00
committed by Automerger Merge Worker
4 changed files with 25 additions and 7 deletions

View File

@@ -3149,7 +3149,8 @@ class ContextImpl extends Context {
// If we want to access protected data on behalf of another app we need to
// tell the OS that we opt in to participate in the attribution chain.
if (nextAttributionSource != null) {
getSystemService(PermissionManager.class).registerAttributionSource(attributionSource);
attributionSource = getSystemService(PermissionManager.class)
.registerAttributionSource(attributionSource);
}
return attributionSource;
}