| Index: chrome/browser/android/shortcut_helper.cc
|
| diff --git a/chrome/browser/android/shortcut_helper.cc b/chrome/browser/android/shortcut_helper.cc
|
| index e4769d98c6e7eda455c325684699a18b4f7067ed..f12bd23afd9570c1f492412b68fee3fa3a5fac14 100644
|
| --- a/chrome/browser/android/shortcut_helper.cc
|
| +++ b/chrome/browser/android/shortcut_helper.cc
|
| @@ -87,8 +87,7 @@ void ShortcutHelper::AddShortcutInBackgroundWithSkBitmap(
|
| base::android::ConvertUTF8ToJavaString(env, info.manifest_url.spec());
|
|
|
| uintptr_t callback_pointer = 0;
|
| - if (info.display == blink::WebDisplayModeStandalone ||
|
| - info.display == blink::WebDisplayModeFullscreen) {
|
| + if (info.type == ShortcutInfo::Type::WEBAPP) {
|
| // The callback will need to be run after shortcut creation completes in
|
| // order to download the splash image and save it to the WebappDataStorage.
|
| // Create a copy of the callback here and send the pointer to Java, which
|
| @@ -101,6 +100,7 @@ void ShortcutHelper::AddShortcutInBackgroundWithSkBitmap(
|
| Java_ShortcutHelper_addShortcut(
|
| env,
|
| java_webapp_id.obj(),
|
| + static_cast<int>(info.type),
|
| java_url.obj(),
|
| java_user_title.obj(),
|
| java_name.obj(),
|
|
|