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

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

Issue 2728053002: [Android:WebAPK] Don't add webapp to homescreen if WebAPK install times out part 2/3 (Closed)
Patch Set: Merge branch 'refactor_shortcut_helper3' into refactor_shortcut_helper4 Created 3 years, 9 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/java/src/org/chromium/chrome/browser/webapps/WebApkInstaller.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/GooglePlayWebApkInstallDelegate.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/webapps/GooglePlayWebApkInstallDelegate.java b/chrome/android/java/src/org/chromium/chrome/browser/webapps/GooglePlayWebApkInstallDelegate.java
index 2baaf903136b49134605c1071db9d2bca89af7dc..87a5bf68d3509f06787a7c05ae2ce4af2b8e7b7e 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/webapps/GooglePlayWebApkInstallDelegate.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/webapps/GooglePlayWebApkInstallDelegate.java
@@ -38,10 +38,10 @@ public interface GooglePlayWebApkInstallDelegate {
* @param title The title of the WebAPK to display during installation.
* @param token The token from WebAPK Minter Server.
* @param url The start URL of the WebAPK to install.
- * @param callback The callback to invoke when the install is either completed or failed.
+ * @param callback The callback to invoke when the install completes, times out or fails.
*/
void installAsync(String packageName, int version, String title, String token, String url,
- Callback<Boolean> callback);
+ Callback<Integer> callback);
/**
* Calls the callback once the installation either succeeded or failed.
@@ -49,10 +49,4 @@ public interface GooglePlayWebApkInstallDelegate {
* @param event The result of the install.
*/
void onGotInstallEvent(String packageName, @InstallerPackageEvent int event);
-
- /**
- * Checks whether Google Play Install API is available.
- * @param callback The callback to invoke when the check is done.
- */
- void canInstallWebApk(Callback<Boolean> callback);
}
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkInstaller.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698