Chromium Code Reviews| 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() { |
|
Xi Han
2017/03/30 22:14:11
You also need to update AppHooksImpl#getGooglePlay
Yaron
2017/03/31 13:50:13
Already did: https://chrome-internal-review.google
|
| - 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(); |
| } |