Tim Zimmermann | 8dee14c | 2023-06-04 06:08:39 +0200 | [diff] [blame] | 1 | From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 |
Tim Zimmermann | e0a843b | 2022-12-17 06:41:56 +0100 | [diff] [blame] | 2 | From: csagan5 <32685696+csagan5@users.noreply.github.com> |
| 3 | Date: Sun, 26 Nov 2017 22:51:43 +0100 |
| 4 | Subject: [PATCH] disable first run welcome page |
| 5 | |
| 6 | --- |
Tim Zimmermann | 2fb6631 | 2024-01-25 06:46:16 +0100 | [diff] [blame] | 7 | .../org/chromium/chrome/browser/firstrun/FirstRunUtils.java | 2 -- |
| 8 | .../org/chromium/chrome/browser/firstrun/FirstRunStatus.java | 4 ++-- |
| 9 | 2 files changed, 2 insertions(+), 4 deletions(-) |
Tim Zimmermann | e0a843b | 2022-12-17 06:41:56 +0100 | [diff] [blame] | 10 | |
| 11 | diff --git a/chrome/android/java/src/org/chromium/chrome/browser/firstrun/FirstRunUtils.java b/chrome/android/java/src/org/chromium/chrome/browser/firstrun/FirstRunUtils.java |
Tim Zimmermann | 2fb6631 | 2024-01-25 06:46:16 +0100 | [diff] [blame] | 12 | index 5872eb1c431ec..a41c17edde919 100644 |
Tim Zimmermann | e0a843b | 2022-12-17 06:41:56 +0100 | [diff] [blame] | 13 | --- a/chrome/android/java/src/org/chromium/chrome/browser/firstrun/FirstRunUtils.java |
| 14 | +++ b/chrome/android/java/src/org/chromium/chrome/browser/firstrun/FirstRunUtils.java |
Tim Zimmermann | 2fb6631 | 2024-01-25 06:46:16 +0100 | [diff] [blame] | 15 | @@ -47,14 +47,12 @@ public class FirstRunUtils { |
Tim Zimmermann | e0a843b | 2022-12-17 06:41:56 +0100 | [diff] [blame] | 16 | javaPrefs.readBoolean(ChromePreferenceKeys.FIRST_RUN_CACHED_TOS_ACCEPTED, false); |
| 17 | boolean nativePrefValue = isFirstRunEulaAccepted(); |
Tim Zimmermann | 2fb6631 | 2024-01-25 06:46:16 +0100 | [diff] [blame] | 18 | boolean isFirstRunComplete = FirstRunStatus.getFirstRunFlowComplete(); |
Tim Zimmermann | e0a843b | 2022-12-17 06:41:56 +0100 | [diff] [blame] | 19 | - if (javaPrefValue || nativePrefValue || isFirstRunComplete) { |
| 20 | if (!javaPrefValue) { |
| 21 | javaPrefs.writeBoolean(ChromePreferenceKeys.FIRST_RUN_CACHED_TOS_ACCEPTED, true); |
| 22 | } |
| 23 | if (!nativePrefValue) { |
| 24 | setEulaAccepted(); |
| 25 | } |
| 26 | - } |
| 27 | } |
| 28 | |
| 29 | /** |
| 30 | diff --git a/chrome/browser/first_run/android/java/src/org/chromium/chrome/browser/firstrun/FirstRunStatus.java b/chrome/browser/first_run/android/java/src/org/chromium/chrome/browser/firstrun/FirstRunStatus.java |
Tim Zimmermann | 2fb6631 | 2024-01-25 06:46:16 +0100 | [diff] [blame] | 31 | index 4aedb8a0f1d95..cff008ce39b67 100644 |
Tim Zimmermann | e0a843b | 2022-12-17 06:41:56 +0100 | [diff] [blame] | 32 | --- a/chrome/browser/first_run/android/java/src/org/chromium/chrome/browser/firstrun/FirstRunStatus.java |
| 33 | +++ b/chrome/browser/first_run/android/java/src/org/chromium/chrome/browser/firstrun/FirstRunStatus.java |
Tim Zimmermann | 2fb6631 | 2024-01-25 06:46:16 +0100 | [diff] [blame] | 34 | @@ -50,8 +50,8 @@ public class FirstRunStatus { |
Tim Zimmermann | e0a843b | 2022-12-17 06:41:56 +0100 | [diff] [blame] | 35 | * includes ToS and Sign In pages if necessary. |
| 36 | */ |
| 37 | public static boolean getFirstRunFlowComplete() { |
Tim Zimmermann | 2fb6631 | 2024-01-25 06:46:16 +0100 | [diff] [blame] | 38 | - return ChromeSharedPreferences.getInstance() |
| 39 | - .readBoolean(ChromePreferenceKeys.FIRST_RUN_FLOW_COMPLETE, false); |
| 40 | + setFirstRunFlowComplete(true); |
Tim Zimmermann | e0a843b | 2022-12-17 06:41:56 +0100 | [diff] [blame] | 41 | + return true; |
| 42 | } |
| 43 | |
| 44 | /** |