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

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

Issue 2237293003: [FRE] Change the First Run Experience launching behavior (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments Created 4 years, 4 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/ChromeTabbedActivity.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/ChromeTabbedActivity.java b/chrome/android/java/src/org/chromium/chrome/browser/ChromeTabbedActivity.java
index dfa556255b970d43a8dae5099930d8564fd59bab..d24ec691eeb714c83913bedf5d4cd6bcd00152dd 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/ChromeTabbedActivity.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/ChromeTabbedActivity.java
@@ -168,6 +168,12 @@ public class ChromeTabbedActivity extends ChromeActivity implements OverviewMode
public static final String INTENT_EXTRA_TEST_RENDER_PROCESS_LIMIT = "render_process_limit";
/**
+ * Sending an intent with this extra sets the ChromeTabbedActivity to skip the First Run
+ * Experience.
+ */
+ public static final String SKIP_FIRST_RUN_EXPERIENCE = "skip_first_run_experience";
+
+ /**
* Sending an intent with this action to Chrome will cause it to close all tabs
* (iff the --enable-test-intents command line flag is set). If a URL is supplied in the
* intent data, this will be loaded and unaffected by the close all action.
@@ -957,8 +963,12 @@ public class ChromeTabbedActivity extends ChromeActivity implements OverviewMode
return;
}
+ if (getIntent() != null && getIntent().getBooleanExtra(SKIP_FIRST_RUN_EXPERIENCE, false)) {
+ return;
+ }
+
final Intent freIntent =
- FirstRunFlowSequencer.checkIfFirstRunIsNecessary(this, getIntent());
+ FirstRunFlowSequencer.checkIfFirstRunIsNecessary(this, getIntent(), false);
if (freIntent == null) return;
mIsOnFirstRun = true;

Powered by Google App Engine
This is Rietveld 408576698