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

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

Issue 2650403004: (Android) Removing ErrorProne warnings (Closed)
Patch Set: 2nd patch version with more warnings removed Created 3 years, 11 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
Index: chrome/android/java/src/org/chromium/chrome/browser/document/ChromeLauncherActivity.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/document/ChromeLauncherActivity.java b/chrome/android/java/src/org/chromium/chrome/browser/document/ChromeLauncherActivity.java
index 2ff6b14acb94fcac4420427382b83ac3e4e70614..6c986de963c2ba4217bd5d25ee03a9c05df89470 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/document/ChromeLauncherActivity.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/document/ChromeLauncherActivity.java
@@ -212,7 +212,7 @@ public class ChromeLauncherActivity extends Activity
ChromeSwitches.ENABLE_LIGHTWEIGHT_FIRST_RUN_EXPERIENCE)) {
// Launch the First Run Experience for VIEW Intents with URLs before launching
// ChromeTabbedActivity if necessary.
- if (getIntent() != null && getIntent().getAction() == Intent.ACTION_VIEW
+ if (getIntent() != null && Intent.ACTION_VIEW.equals(getIntent().getAction())
&& IntentHandler.getUrlFromIntent(getIntent()) != null) {
if (launchFirstRunExperience(true)) {
finish();

Powered by Google App Engine
This is Rietveld 408576698