blob: 69138acc41214223d0d7d2f666700dcf3ae124b3 [file] [log] [blame]
Tim Zimmermann8dee14c2023-06-04 06:08:39 +02001From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
Tim Zimmermanne0a843b2022-12-17 06:41:56 +01002From: csagan5 <32685696+csagan5@users.noreply.github.com>
3Date: Sun, 26 Nov 2017 22:51:43 +0100
4Subject: [PATCH] disable first run welcome page
5
6---
Tim Zimmermann2fb66312024-01-25 06:46:16 +01007 .../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 Zimmermanne0a843b2022-12-17 06:41:56 +010010
11diff --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 Zimmermann2fb66312024-01-25 06:46:16 +010012index 5872eb1c431ec..a41c17edde919 100644
Tim Zimmermanne0a843b2022-12-17 06:41:56 +010013--- 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 Zimmermann2fb66312024-01-25 06:46:16 +010015@@ -47,14 +47,12 @@ public class FirstRunUtils {
Tim Zimmermanne0a843b2022-12-17 06:41:56 +010016 javaPrefs.readBoolean(ChromePreferenceKeys.FIRST_RUN_CACHED_TOS_ACCEPTED, false);
17 boolean nativePrefValue = isFirstRunEulaAccepted();
Tim Zimmermann2fb66312024-01-25 06:46:16 +010018 boolean isFirstRunComplete = FirstRunStatus.getFirstRunFlowComplete();
Tim Zimmermanne0a843b2022-12-17 06:41:56 +010019- 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 /**
30diff --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 Zimmermann2fb66312024-01-25 06:46:16 +010031index 4aedb8a0f1d95..cff008ce39b67 100644
Tim Zimmermanne0a843b2022-12-17 06:41:56 +010032--- 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 Zimmermann2fb66312024-01-25 06:46:16 +010034@@ -50,8 +50,8 @@ public class FirstRunStatus {
Tim Zimmermanne0a843b2022-12-17 06:41:56 +010035 * includes ToS and Sign In pages if necessary.
36 */
37 public static boolean getFirstRunFlowComplete() {
Tim Zimmermann2fb66312024-01-25 06:46:16 +010038- return ChromeSharedPreferences.getInstance()
39- .readBoolean(ChromePreferenceKeys.FIRST_RUN_FLOW_COMPLETE, false);
40+ setFirstRunFlowComplete(true);
Tim Zimmermanne0a843b2022-12-17 06:41:56 +010041+ return true;
42 }
43
44 /**