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

Side by Side Diff: chrome/browser/android/webapk/chrome_webapk_host.cc

Issue 2791983003: Remove untrusted sources installation flow. (Closed)
Patch Set: Remove untrusted sources installation flow. Created 3 years, 8 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 unified diff | Download patch
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/android/webapk/chrome_webapk_host.h ('k') | chrome/browser/android/webapk/webapk_install_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698