| Index: chrome/android/java/src/org/chromium/chrome/browser/firstrun/FirstRunStatus.java
|
| diff --git a/chrome/android/java/src/org/chromium/chrome/browser/firstrun/FirstRunStatus.java b/chrome/android/java/src/org/chromium/chrome/browser/firstrun/FirstRunStatus.java
|
| index 542bc95cd92b964d88f1cee1f4d8be0e5cd190f8..d0818aed162e6b0a69ef30b9a65c73d1649ebee6 100644
|
| --- a/chrome/android/java/src/org/chromium/chrome/browser/firstrun/FirstRunStatus.java
|
| +++ b/chrome/android/java/src/org/chromium/chrome/browser/firstrun/FirstRunStatus.java
|
| @@ -16,6 +16,8 @@ public class FirstRunStatus {
|
| // Needed by ChromeBackupAgent
|
| public static final String FIRST_RUN_FLOW_COMPLETE = "first_run_flow";
|
|
|
| + private static final String SKIP_WELCOME_PAGE = "skip_welcome_page";
|
| +
|
| /**
|
| * Sets the "main First Run Experience flow complete" preference.
|
| * @param context Any context
|
| @@ -39,4 +41,19 @@ public class FirstRunStatus {
|
| .getBoolean(FIRST_RUN_FLOW_COMPLETE, false);
|
| }
|
|
|
| + /**
|
| + * Sets the preference to skip the welcome page from the main First Run Experience.
|
| + * @param context Any context
|
| + * @param isSkip Whether the welcome page should be skpped
|
| + */
|
| + public static void setSkipWelcomePage(Context context, boolean isSkip) {
|
| + ContextUtils.getAppSharedPreferences().edit().putBoolean(SKIP_WELCOME_PAGE, isSkip).apply();
|
| + }
|
| +
|
| + /**
|
| + * Gets whether the welcome page should be skipped from the main First Run Experience.
|
| + */
|
| + public static boolean getSkipWelcomePage(Context context) {
|
| + return ContextUtils.getAppSharedPreferences().getBoolean(SKIP_WELCOME_PAGE, false);
|
| + }
|
| }
|
|
|