Commit 789853d7 authored by Robert Sesek's avatar Robert Sesek Committed by Commit Bot

Remove unused IntentHandler.isIntentFromTrustedApp()

Bug: 832124
Change-Id: Ieb671aa0111a494ba8f0fff068be100e9f5d5143
Reviewed-on: https://chromium-review.googlesource.com/1217757Reviewed-by: default avatarTed Choc <tedchoc@chromium.org>
Commit-Queue: Robert Sesek <rsesek@chromium.org>
Cr-Commit-Position: refs/heads/master@{#590405}
parent 3146bd70
...@@ -950,21 +950,6 @@ public class IntentHandler { ...@@ -950,21 +950,6 @@ public class IntentHandler {
return false; return false;
} }
/**
* @param intent An Intent to be checked.
* @param packageName The app where the intent is expected to originate from
* @return Whether the intent originates from the first-party app with the given package name.
*/
public static boolean isIntentFromTrustedApp(Intent intent, String packageName) {
if (intent == null) return false;
PendingIntent token = fetchAuthenticationTokenFromIntent(intent);
if (token == null) return false;
return isIntentChromeOrFirstParty(intent)
&& ApiCompatibilityUtils.getCreatorPackage(token).equals(packageName);
}
@VisibleForTesting @VisibleForTesting
boolean isIntentUserVisible() { boolean isIntentUserVisible() {
// Only process Intents if the screen is on and the device is unlocked; // Only process Intents if the screen is on and the device is unlocked;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment