Index: chrome/android/java/src/org/chromium/chrome/browser/ShortcutHelper.java |
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/ShortcutHelper.java b/chrome/android/java/src/org/chromium/chrome/browser/ShortcutHelper.java |
index b174519765b4af9ef2162054881fadbf36241fd6..ca7558d5dbccd0df646c638ecc4f1ae9f4114803 100644 |
--- a/chrome/android/java/src/org/chromium/chrome/browser/ShortcutHelper.java |
+++ b/chrome/android/java/src/org/chromium/chrome/browser/ShortcutHelper.java |
@@ -4,6 +4,7 @@ |
package org.chromium.chrome.browser; |
+import android.annotation.SuppressLint; |
import android.app.ActivityManager; |
import android.content.Context; |
import android.content.Intent; |
@@ -336,6 +337,8 @@ public class ShortcutHelper { |
* @param context Context used to get the package manager. |
* @return if a shortcut can be added to the home screen under the current profile. |
*/ |
+ // TODO(crbug.com/635567): Fix this properly. |
+ @SuppressLint("WrongConstant") |
public static boolean isAddToHomeIntentSupported(Context context) { |
PackageManager pm = context.getPackageManager(); |
Intent i = new Intent(INSTALL_SHORTCUT); |