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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/ShortcutHelper.java

Issue 2829233002: Remove the unsed code for showing Toast after shortcut added by O API. (Closed)
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/android/java/src/org/chromium/chrome/browser/ChromeTabbedActivity.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 0297393ce330fa33f80396d76005df0cf80330b9..6fcc9e915329bc248f897e33a9be34adb53a0853 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/ShortcutHelper.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/ShortcutHelper.java
@@ -33,7 +33,6 @@ import org.chromium.base.VisibleForTesting;
import org.chromium.base.annotations.CalledByNative;
import org.chromium.blink_public.platform.WebDisplayMode;
import org.chromium.chrome.R;
-import org.chromium.chrome.browser.util.IntentUtils;
import org.chromium.chrome.browser.webapps.ChromeShortcutManager;
import org.chromium.chrome.browser.webapps.ChromeWebApkHost;
import org.chromium.chrome.browser.webapps.WebApkInfo;
@@ -80,10 +79,6 @@ public class ShortcutHelper {
public static final String REUSE_URL_MATCHING_TAB_ELSE_NEW_TAB =
"REUSE_URL_MATCHING_TAB_ELSE_NEW_TAB";
- /** Used for the callback intent when using the new shortcut API. */
- public static final String SHORTCUT_TOAST_CATEGORY =
- "com.google.intent.category.SHORTCUT_TOAST";
-
// When a new field is added to the intent, this version should be incremented so that it will
// be correctly populated into the WebappRegistry/WebappDataStorage.
public static final int WEBAPP_SHORTCUT_VERSION = 2;
@@ -232,24 +227,6 @@ public class ShortcutHelper {
}
/**
- * Show toast when getting the callback intent by the launcher after adding shortcut by using
- * the new shortcut API.
- */
- public static void showAddedToHomescreenToastFromIntent(Intent intent) {
- String title = IntentUtils.safeGetStringExtra(intent, Intent.EXTRA_SHORTCUT_NAME);
- showAddedToHomescreenToast(title);
- }
-
- /**
- * Determine if it is a callback intent (which requests for a show-toast), used in the new
- * shortcut API.
- */
- public static boolean isShowToastIntent(Intent intent) {
- if (intent == null || intent.getCategories() == null) return false;
- return intent.getCategories().contains(SHORTCUT_TOAST_CATEGORY);
- }
-
- /**
* Shows toast notifying user that a WebAPK install is already in progress when user tries to
* queue a new install for the same WebAPK.
*/
« no previous file with comments | « chrome/android/java/src/org/chromium/chrome/browser/ChromeTabbedActivity.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698