| Index: chrome/browser/android/shortcut_helper.cc
|
| diff --git a/chrome/browser/android/shortcut_helper.cc b/chrome/browser/android/shortcut_helper.cc
|
| index 7ab56020584b889955e925293c0723aaf604679e..6b4b22c5f9ebdbeeaa2bdffe181ae03d14dd4a6d 100644
|
| --- a/chrome/browser/android/shortcut_helper.cc
|
| +++ b/chrome/browser/android/shortcut_helper.cc
|
| @@ -74,8 +74,8 @@ void ShortcutHelper::AddToLauncherInBackgroundWithSkBitmap(
|
|
|
| if (info.display == blink::WebDisplayModeStandalone ||
|
| info.display == blink::WebDisplayModeFullscreen) {
|
| - if (base::CommandLine::ForCurrentProcess()->HasSwitch(
|
| - switches::kEnableWebApk)) {
|
| + JNIEnv* env = base::android::AttachCurrentThread();
|
| + if (Java_ShortcutHelper_areWebApksEnabled(env)) {
|
| InstallWebApkInBackgroundWithSkBitmap(browser_context, info, icon_bitmap);
|
| return;
|
| }
|
|
|