Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0cbccf9e authored by Ashwini Oruganti's avatar Ashwini Oruganti
Browse files

Enforce the PendingIntent mutability flag requirement for chrome

Bug: 178065720
Test: manual
Change-Id: Ic78716033fa91f4a16540aab72e3bff73c6391e9
Merged-In: Ic78716033fa91f4a16540aab72e3bff73c6391e9
parent 2335acd9
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -379,8 +379,7 @@ public final class PendingIntent implements Parcelable {
        if (Compatibility.isChangeEnabled(PENDING_INTENT_EXPLICIT_MUTABILITY_REQUIRED)
                && !flagImmutableSet && !flagMutableSet) {

            //TODO(b/178065720) Remove check for chrome and enforce this requirement
            if (packageName.equals("com.android.chrome") || mInstrumentation.isInstrumenting()) {
            if (mInstrumentation.isInstrumenting()) {
                Log.e(TAG, msg);
            } else {
                throw new IllegalArgumentException(msg);