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

Unified Diff: webapk/libs/client/src/org/chromium/webapk/lib/client/WebApkValidator.java

Issue 1958523002: Make WebAPK naming consistent 1/2 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
Index: webapk/libs/client/src/org/chromium/webapk/lib/client/WebApkValidator.java
diff --git a/webapk/libs/client/src/org/chromium/webapk/lib/client/WebApkValidator.java b/webapk/libs/client/src/org/chromium/webapk/lib/client/WebApkValidator.java
index 358a7368d2f7077b8a5f981d98320f97de7cd733..5acdc7d3ef1a46e41ffcf86861b94bfa66efb74a 100644
--- a/webapk/libs/client/src/org/chromium/webapk/lib/client/WebApkValidator.java
+++ b/webapk/libs/client/src/org/chromium/webapk/lib/client/WebApkValidator.java
@@ -27,16 +27,16 @@ public class WebApkValidator {
private static byte[] sExpectedSignature;
/**
- * Queries the PackageManager to determine whether a web APK can handle the URL. Ignores
+ * Queries the PackageManager to determine whether a WebAPK can handle the URL. Ignores
* whether the user has selected a default handler for the URL and whether the default
- * handler is the web APK.
+ * handler is the WebAPK.
*
- * NOTE(yfriedman): This can fail if multiple WebApks can match the supplied url.
+ * NOTE(yfriedman): This can fail if multiple WebAPKs can match the supplied url.
*
* @param context The application context.
* @param url The url to check.
- * @return Package name of web APK which can handle the URL. Null if the url should not be
- * handled by a web APK.
+ * @return Package name of WebAPK which can handle the URL. Null if the url should not be
+ * handled by a WebAPK.
*/
public static String queryWebAPKPackage(Context context, String url) {
Intent intent;
@@ -61,8 +61,8 @@ public class WebApkValidator {
/**
* @param The ResolveInfos to search.
- * @return Package name of the ResolveInfo which corresponds to a web APK. Null if none of the
- * ResolveInfos corresponds to a web APK.
+ * @return Package name of the ResolveInfo which corresponds to a WebAPK. Null if none of the
+ * ResolveInfos corresponds to a WebAPK.
*/
public static String findWebAPKPackage(List<ResolveInfo> infos) {
for (ResolveInfo info : infos) {
@@ -75,10 +75,10 @@ public class WebApkValidator {
}
/**
- * Returns whether the provided WebApk is installed and passes signature checks.
+ * Returns whether the provided WebAPK is installed and passes signature checks.
* @param context A context
* @param webappPackageName The package name to check
- * @return true iff the WebApk is installed and passes security checks
+ * @return true iff the WebAPK is installed and passes security checks
*/
public static boolean isValidWebApk(Context context, String webappPackageName) {
if (sExpectedSignature == null) {
@@ -112,7 +112,7 @@ public class WebApkValidator {
}
/**
- * Initializes the WebApkValidator with the expected signature that WebApks must be signed
+ * Initializes the WebApkValidator with the expected signature that WebAPKs must be signed
* with for the current host.
* @param expectedSignature
*/

Powered by Google App Engine
This is Rietveld 408576698