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

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

Issue 2790673002: Remove finch flag for play installation. (Closed)
Patch Set: Remove finch flag for play installation. 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/browser/android/webapk/chrome_webapk_host.h » ('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/ChromeWebApkHost.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/webapps/ChromeWebApkHost.java b/chrome/android/java/src/org/chromium/chrome/browser/webapps/ChromeWebApkHost.java
index 1eeca2e601e30278d57a14003d2f70001d9f4101..3ca4a81dc52613c0a44094481c4d388412375046 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/webapps/ChromeWebApkHost.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/webapps/ChromeWebApkHost.java
@@ -58,10 +58,6 @@ public class ChromeWebApkHost {
/** Computes the GooglePlayInstallState. */
private static int computeGooglePlayInstallState() {
- if (!isGooglePlayInstallEnabledByChromeFeature()) {
- return GooglePlayInstallState.DISABLED_BY_VARIATIONS;
- }
-
if (!ExternalAuthUtils.getInstance().canUseGooglePlayServices(
ContextUtils.getApplicationContext(),
new UserRecoverableErrorHandler.Silent())) {
@@ -87,15 +83,6 @@ public class ChromeWebApkHost {
}
/**
- * Returns whether Google Play install is enabled by Chrome. Does not check whether installing
- * from Google Play is possible.
- */
- public static boolean isGooglePlayInstallEnabledByChromeFeature() {
- return isEnabled() && LibraryLoader.isInitialized()
- && nativeCanUseGooglePlayToInstallWebApk();
- }
-
- /**
* Returns whether installing WebAPKs is possible either from "unknown resources" or Google
* Play.
*/
@@ -164,7 +151,6 @@ public class ChromeWebApkHost {
}
}
- private static native boolean nativeCanUseGooglePlayToInstallWebApk();
private static native boolean nativeCanLaunchRendererInWebApkProcess();
private static native boolean nativeCanInstallFromUnknownSources();
}
« no previous file with comments | « no previous file | chrome/browser/android/webapk/chrome_webapk_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698