summaryrefslogtreecommitdiff
path: root/core/java/android
diff options
context:
space:
mode:
authorAshwini Oruganti <ashfall@google.com>2021-03-09 09:24:02 -0800
committerAshwini Oruganti <ashfall@google.com>2021-03-29 17:17:38 +0000
commit0cbccf9e012655177090f363bd3e84dd79aedaab (patch)
tree51666361f6ea92f0fc7d2bf630bb50f98e78a5cf /core/java/android
parent2335acd9a2b83a7a7a9abe4ceed3d6ddc3569ce7 (diff)
Enforce the PendingIntent mutability flag requirement for chrome
Bug: 178065720 Test: manual Change-Id: Ic78716033fa91f4a16540aab72e3bff73c6391e9 Merged-In: Ic78716033fa91f4a16540aab72e3bff73c6391e9
Diffstat (limited to 'core/java/android')
-rw-r--r--core/java/android/app/PendingIntent.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/core/java/android/app/PendingIntent.java b/core/java/android/app/PendingIntent.java
index f4b95420154b..4cf3a8059b3e 100644
--- a/core/java/android/app/PendingIntent.java
+++ b/core/java/android/app/PendingIntent.java
@@ -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);