| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/android/webapk/chrome_webapk_host.h" | 5 #include "chrome/browser/android/webapk/chrome_webapk_host.h" |
| 6 | 6 |
| 7 #include "chrome/browser/android/chrome_feature_list.h" | 7 #include "chrome/browser/android/chrome_feature_list.h" |
| 8 #include "components/variations/variations_associated_data.h" | 8 #include "components/variations/variations_associated_data.h" |
| 9 #include "jni/ChromeWebApkHost_jni.h" | 9 #include "jni/ChromeWebApkHost_jni.h" |
| 10 | 10 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 } | 35 } |
| 36 | 36 |
| 37 // static | 37 // static |
| 38 jboolean CanLaunchRendererInWebApkProcess( | 38 jboolean CanLaunchRendererInWebApkProcess( |
| 39 JNIEnv* env, | 39 JNIEnv* env, |
| 40 const base::android::JavaParamRef<jclass>& clazz) { | 40 const base::android::JavaParamRef<jclass>& clazz) { |
| 41 return variations::GetVariationParamValueByFeature( | 41 return variations::GetVariationParamValueByFeature( |
| 42 chrome::android::kImprovedA2HS, kLaunchRendererInWebApkProcess) == | 42 chrome::android::kImprovedA2HS, kLaunchRendererInWebApkProcess) == |
| 43 "true"; | 43 "true"; |
| 44 } | 44 } |
| 45 | |
| 46 // static | |
| 47 jboolean CanInstallFromUnknownSources( | |
| 48 JNIEnv* env, | |
| 49 const base::android::JavaParamRef<jclass>& clazz) { | |
| 50 return base::FeatureList::GetInstance()->IsFeatureOverriddenFromCommandLine( | |
| 51 chrome::android::kImprovedA2HS.name, | |
| 52 base::FeatureList::OVERRIDE_ENABLE_FEATURE); | |
| 53 } | |
| OLD | NEW |