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

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

Issue 2767643003: [WebAPKs]: Run WebApkInstaller::OnInstallFinished() for Google Play updates (Closed)
Patch Set: 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 | no next file » | 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/WebApkInstaller.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkInstaller.java b/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkInstaller.java
index c19b3a1ea8020608620cea38c7e3c4cf9f2dacfc..894ed3983d37215b81754834b52902fe17670762 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkInstaller.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkInstaller.java
@@ -162,10 +162,19 @@ public class WebApkInstaller {
@CalledByNative
private void updateAsyncFromGooglePlay(
String packageName, int version, String title, String token, String url) {
- if (mGooglePlayWebApkInstallDelegate == null) return;
+ if (mGooglePlayWebApkInstallDelegate == null) {
+ notify(false);
+ return;
+ }
+ Callback<Boolean> callback = new Callback<Boolean>() {
+ @Override
+ public void onResult(Boolean success) {
+ WebApkInstaller.this.notify(success);
+ }
+ };
mGooglePlayWebApkInstallDelegate.installAsync(
- packageName, version, title, token, url, null);
+ packageName, version, title, token, url, callback);
}
/**
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698