This patch sets the default page for when:

- Chromium opens
- Home is clicked
- A new tab is opened

Done as part of AP9-2162
This commit is contained in:
Yifeng Wu 2021-10-26 17:50:36 +08:00 committed by Allen Luce
parent bb36826865
commit d880f95325
2 changed files with 26 additions and 0 deletions

View file

@ -166,3 +166,4 @@ Enable-native-Android-autofill.patch
Automated-domain-substitution.patch
Turn-AdBlock-off-by-default.patch
Force-tablet-mode.patch
Set-default-page-url.patch

View file

@ -0,0 +1,25 @@
From: Yifeng <wuyifeng@nd.com.cn>
Date: Mon, 18 Oct 2021 07:01:00 +0000
Subject: AP9-2162: Set default page url to http://myPromethean.com.
The requirement is that it should load to http://myPromethean.com when the following cases:
* when Chromium opens.
* when the button of home is clicked.
* when a new tab is opened.
---
components/embedder_support/android/java/src/org/chromium/components/embedder_support/util/UrlConstants.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/components/embedder_support/android/java/src/org/chromium/components/embedder_support/util/UrlConstants.java b/components/embedder_support/android/java/src/org/chromium/components/embedder_support/util/UrlConstants.java
--- a/components/embedder_support/android/java/src/org/chromium/components/embedder_support/util/UrlConstants.java
+++ b/components/embedder_support/android/java/src/org/chromium/components/embedder_support/util/UrlConstants.java
@@ -48,4 +48,4 @@
public static final String NTP_HOST = "newtab";
- public static final String NTP_URL = "chrome-native://newtab/";
- public static final String NTP_NON_NATIVE_URL = "chrome://newtab/";
+ public static final String NTP_URL = "http://myPromethean.com/";
+ public static final String NTP_NON_NATIVE_URL = "http://myPromethean.com/";
public static final String NTP_ABOUT_URL = "about:newtab";
--
2.17.1