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; |