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

Unified Diff: chrome/browser/android/webapk/webapk_installer.cc

Issue 2634173002: Fall back to legacy add to homescreen behavior on non-GMS device or GMS isn't availabe. (Closed)
Patch Set: Nits. Created 3 years, 11 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: chrome/browser/android/webapk/webapk_installer.cc
diff --git a/chrome/browser/android/webapk/webapk_installer.cc b/chrome/browser/android/webapk/webapk_installer.cc
index 1384c5997f700cfa52b0ab58ec16c26684fcbb19..cf8c3e5aacbeef5d517ddcda6e8cfcd2051d087e 100644
--- a/chrome/browser/android/webapk/webapk_installer.cc
+++ b/chrome/browser/android/webapk/webapk_installer.cc
@@ -310,9 +310,9 @@ bool WebApkInstaller::StartUpdateUsingDownloadedWebApk(
env, java_ref_, java_file_path);
}
-bool WebApkInstaller::HasGooglePlayWebApkInstallDelegate() {
+bool WebApkInstaller::CanUseGooglePlayInstallService() {
JNIEnv* env = base::android::AttachCurrentThread();
- return Java_WebApkInstaller_hasGooglePlayWebApkInstallDelegate(
+ return Java_WebApkInstaller_canUseGooglePlayInstallService(
env, java_ref_);
}
@@ -423,7 +423,7 @@ void WebApkInstaller::OnURLFetchComplete(const net::URLFetcher* source) {
return;
}
- if (HasGooglePlayWebApkInstallDelegate()) {
+ if (CanUseGooglePlayInstallService()) {
int version = 1;
base::StringToInt(response->version(), &version);
if (!InstallOrUpdateWebApkFromGooglePlay(
« no previous file with comments | « chrome/browser/android/webapk/webapk_installer.h ('k') | chrome/browser/android/webapk/webapk_installer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698