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

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

Issue 2821303002: Minor code cleanup, remove unused function isDaydreamVrIntent (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 | « no previous file | 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/vr_shell/VrShellDelegate.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellDelegate.java b/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellDelegate.java
index a6b95d0bbad074ebf4f62a7a6f8777136179223b..11cbb7236adee41077461fd9e4b88aaa2bbb30f2 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellDelegate.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellDelegate.java
@@ -78,11 +78,6 @@ public class VrShellDelegate implements ApplicationStatus.ActivityStateListener,
@IntDef({VR_NOT_AVAILABLE, VR_CARDBOARD, VR_DAYDREAM})
private @interface VrSupportLevel {}
- // TODO(bshe): These should be replaced by string provided by NDK. Currently, it only available
- // in SDK and we don't want add dependency to SDK just to get these strings.
- private static final String DAYDREAM_CATEGORY = "com.google.intent.category.DAYDREAM";
- private static final String CARDBOARD_CATEGORY = "com.google.intent.category.CARDBOARD";
-
// Linter and formatter disagree on how the line below should be formatted.
/* package */
static final String VR_ENTRY_RESULT_ACTION =
@@ -207,14 +202,6 @@ public class VrShellDelegate implements ApplicationStatus.ActivityStateListener,
}
/**
- * Whether or not the intent is a Daydream VR Intent.
- */
- public static boolean isDaydreamVrIntent(Intent intent) {
- if (intent == null || intent.getCategories() == null) return false;
- return intent.getCategories().contains(DAYDREAM_CATEGORY);
- }
-
- /**
* Handles the result of the exit VR flow (DOFF).
*/
public static void onExitVrResult(int resultCode) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698