Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1764)

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappLauncherActivity.java

Issue 2968623002: [WebApk] Fix broken launch when matching an app with verified intent filters. (Closed)
Patch Set: [WebApk] Fix broken launch when matching an app with verified intent filters. Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/android/webapk/libs/client/junit/src/org/chromium/webapk/lib/client/WebApkValidatorTest.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappLauncherActivity.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappLauncherActivity.java b/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappLauncherActivity.java
index 2faec72fc74a674bbcf5c0896bfd3677adbdc6eb..6c83020aaa397dbf11b2e12dfeff7eacd9b472ea 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappLauncherActivity.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappLauncherActivity.java
@@ -251,7 +251,7 @@ public class WebappLauncherActivity extends Activity {
String url = IntentUtils.safeGetStringExtra(intent, ShortcutHelper.EXTRA_URL);
if (TextUtils.isEmpty(url)) return false;
- if (!webApkPackage.equals(WebApkValidator.queryWebApkPackage(this, url))) {
+ if (!WebApkValidator.canWebApkHandleUrl(this, webApkPackage, url)) {
Log.d(TAG, "%s is not within scope of %s WebAPK", url, webApkPackage);
return false;
}
« no previous file with comments | « no previous file | chrome/android/webapk/libs/client/junit/src/org/chromium/webapk/lib/client/WebApkValidatorTest.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698