From 4c4dd71824c189a446f72ae5474739866f9de2d8 Mon Sep 17 00:00:00 2001 From: csagan5 <32685696+csagan5@users.noreply.github.com> Date: Sat, 16 May 2020 17:42:56 +0200 Subject: [PATCH] Updated domain substitution patch to run before text replacements --- build/bromite_patches_list.txt | 2 +- .../Automated-domain-substitution.patch | 85 ++++++++++++++----- 2 files changed, 64 insertions(+), 23 deletions(-) diff --git a/build/bromite_patches_list.txt b/build/bromite_patches_list.txt index 4f9caf90..9f8b6ca5 100644 --- a/build/bromite_patches_list.txt +++ b/build/bromite_patches_list.txt @@ -141,5 +141,5 @@ Disable-AImageReader-for-ARM64-P-and-ARM64-Q.patch Restore-GPU-bug-blacklist-for-AImageReader-on-ARM-CPUs.patch Update-i18n-zh_CN-support.patch Add-a-flag-to-allow-screenshots-in-Incognito-mode.patch -Automated-domain-substitution.patch Workaround-for-startup-crash.patch +Automated-domain-substitution.patch diff --git a/build/patches/Automated-domain-substitution.patch b/build/patches/Automated-domain-substitution.patch index 634f0ce2..c8c3821e 100644 --- a/build/patches/Automated-domain-substitution.patch +++ b/build/patches/Automated-domain-substitution.patch @@ -87,6 +87,7 @@ Subject: Automated domain substitution .../chrome/browser/IntentHandler.java | 6 +- .../customtabs/CustomButtonParams.java | 2 +- .../browser/feedback/ConnectivityChecker.java | 4 +- + .../chrome/browser/help/HelpAndFeedback.java | 2 +- .../indicator/ConnectivityDetector.java | 4 +- .../browser/omaha/RequestGenerator.java | 2 +- .../geo/partner_location_descriptor.proto | 2 +- @@ -299,7 +300,7 @@ Subject: Automated domain substitution .../supervised_user_service.cc | 2 +- .../supervised_user_url_filter.cc | 10 +- .../browser/tracing/crash_service_uploader.cc | 2 +- - .../strings/android_chrome_strings.grd | 50 +- + .../strings/android_chrome_strings.grd | 52 +- .../arc/arc_app_reinstall_app_result.cc | 2 +- .../ash/ambient/backdrop/photo_client_impl.cc | 2 +- .../ui/ash/assistant/assistant_test_mixin.cc | 2 +- @@ -795,7 +796,7 @@ Subject: Automated domain substitution .../ntp_snippets/ntp_snippets_constants.cc | 16 +- components/ntp_snippets/remote/fetch.py | 8 +- components/ntp_tiles/popular_sites_impl.cc | 2 +- - .../resources/default_popular_sites.json | 4 +- + .../resources/default_popular_sites.json | 16 +- .../core/prefetch/prefetch_proto_utils.cc | 2 +- .../core/prefetch/prefetch_server_urls.cc | 2 +- .../omnibox/browser/document_provider.cc | 10 +- @@ -1989,7 +1990,7 @@ Subject: Automated domain substitution ...weblayer_security_blocking_page_factory.cc | 2 +- .../weblayer/shell/WebLayerShellActivity.java | 2 +- weblayer/shell/app/shell_main_params.cc | 2 +- - 1986 files changed, 8779 insertions(+), 8779 deletions(-) + 1987 files changed, 8787 insertions(+), 8787 deletions(-) diff --git a/.gn b/.gn --- a/.gn @@ -3534,6 +3535,18 @@ diff --git a/chrome/android/java/src/org/chromium/chrome/browser/feedback/Connec private static String sHttpNoContentUrl = DEFAULT_HTTP_NO_CONTENT_URL; private static String sHttpsNoContentUrl = DEFAULT_HTTPS_NO_CONTENT_URL; +diff --git a/chrome/android/java/src/org/chromium/chrome/browser/help/HelpAndFeedback.java b/chrome/android/java/src/org/chromium/chrome/browser/help/HelpAndFeedback.java +--- a/chrome/android/java/src/org/chromium/chrome/browser/help/HelpAndFeedback.java ++++ b/chrome/android/java/src/org/chromium/chrome/browser/help/HelpAndFeedback.java +@@ -32,7 +32,7 @@ import javax.annotation.Nonnull; + */ + public class HelpAndFeedback { + protected static final String FALLBACK_SUPPORT_URL = +- "https://support.google.com/chrome/topic/6069782"; ++ "https://support.9oo91e.qjz9zk/chrome/topic/6069782"; + private static final String TAG = "HelpAndFeedback"; + + private static HelpAndFeedback sInstance; diff --git a/chrome/android/java/src/org/chromium/chrome/browser/offlinepages/indicator/ConnectivityDetector.java b/chrome/android/java/src/org/chromium/chrome/browser/offlinepages/indicator/ConnectivityDetector.java --- a/chrome/android/java/src/org/chromium/chrome/browser/offlinepages/indicator/ConnectivityDetector.java +++ b/chrome/android/java/src/org/chromium/chrome/browser/offlinepages/indicator/ConnectivityDetector.java @@ -9490,7 +9503,7 @@ diff --git a/chrome/browser/ui/android/strings/android_chrome_strings.grd b/chro Turn on Lite mode -@@ -1480,7 +1480,7 @@ Your Google account may have other forms of browsing history like searches and a +@@ -1483,7 +1483,7 @@ Your Google account may have other forms of browsing history like searches and a Signed in to Google as @@ -9499,7 +9512,7 @@ diff --git a/chrome/browser/ui/android/strings/android_chrome_strings.grd b/chro Sign out of Chrome -@@ -1494,10 +1494,10 @@ Your Google account may have other forms of browsing history like searches and a +@@ -1497,10 +1497,10 @@ Your Google account may have other forms of browsing history like searches and a Waiting for details of parents. @@ -9512,7 +9525,7 @@ diff --git a/chrome/browser/ui/android/strings/android_chrome_strings.grd b/chro Content -@@ -1547,16 +1547,16 @@ Your Google account may have other forms of browsing history like searches and a +@@ -1553,22 +1553,22 @@ Your Google account may have other forms of browsing history like searches and a Google Terms of Service @@ -9525,6 +9538,13 @@ diff --git a/chrome/browser/ui/android/strings/android_chrome_strings.grd b/chro - https://www.google.com/chrome/terms/ + https://www.9oo91e.qjz9zk/chrome/terms/ + + + Chrome Privacy Notice + + +- https://www.google.com/intl/$LOCALE/chrome/browser/privacy/ ++ https://www.9oo91e.qjz9zk/intl/$LOCALE/chrome/browser/privacy/ - https://families.google.com/intl/$LOCALE/familylink/privacy/child-policy/ @@ -9532,7 +9552,7 @@ diff --git a/chrome/browser/ui/android/strings/android_chrome_strings.grd b/chro -@@ -1578,7 +1578,7 @@ Your Google account may have other forms of browsing history like searches and a +@@ -1590,7 +1590,7 @@ Your Google account may have other forms of browsing history like searches and a Also clear your Chrome data from this device @@ -9541,7 +9561,7 @@ diff --git a/chrome/browser/ui/android/strings/android_chrome_strings.grd b/chro Contacting Google. This may take a minute… -@@ -1726,7 +1726,7 @@ To change this setting, <resetlink>reset sync

<resetlink>reset sync

@@ -9550,7 +9570,7 @@ diff --git a/chrome/browser/ui/android/strings/android_chrome_strings.grd b/chro <link>Get help</link> while scanning for devices… -@@ -1771,7 +1771,7 @@ To change this setting, <resetlink>reset sync

<resetlink>reset sync

@@ -9559,7 +9579,7 @@ diff --git a/chrome/browser/ui/android/strings/android_chrome_strings.grd b/chro Unknown or unsupported device (%1$sA1:B2:C3:D4:E5:F6) -@@ -1966,7 +1966,7 @@ To change this setting, <resetlink>reset sync

<resetlink>reset sync

Translate @@ -9568,7 +9588,7 @@ diff --git a/chrome/browser/ui/android/strings/android_chrome_strings.grd b/chro Never translate this site -@@ -2228,7 +2228,7 @@ To change this setting, <resetlink>reset sync

<resetlink>reset sync

@@ -9577,7 +9597,7 @@ diff --git a/chrome/browser/ui/android/strings/android_chrome_strings.grd b/chro Open Online -@@ -2237,7 +2237,7 @@ To change this setting, <resetlink>reset sync

<resetlink>reset sync

@@ -9586,7 +9606,7 @@ diff --git a/chrome/browser/ui/android/strings/android_chrome_strings.grd b/chro -@@ -3188,7 +3188,7 @@ To change this setting, <resetlink>reset sync

<resetlink>reset sync

@@ -9595,7 +9615,7 @@ diff --git a/chrome/browser/ui/android/strings/android_chrome_strings.grd b/chro Tap to go to site -@@ -3200,7 +3200,7 @@ To change this setting, <resetlink>reset sync

<resetlink>reset sync

@@ -9604,7 +9624,7 @@ diff --git a/chrome/browser/ui/android/strings/android_chrome_strings.grd b/chro A site is sharing your screen -@@ -3400,7 +3400,7 @@ To change this setting, <resetlink>reset sync

<resetlink>reset sync

@@ -9613,7 +9633,7 @@ diff --git a/chrome/browser/ui/android/strings/android_chrome_strings.grd b/chro No compatible devices found -@@ -3449,7 +3449,7 @@ To change this setting, <resetlink>reset sync

<resetlink>reset sync

@@ -9622,7 +9642,7 @@ diff --git a/chrome/browser/ui/android/strings/android_chrome_strings.grd b/chro -@@ -3753,7 +3753,7 @@ Only you can see what your camera is looking at. The site can't see your camera' +@@ -3768,7 +3768,7 @@ Only you can see what your camera is looking at. The site can't see your camera' Sending to %1$sTanya's Pixel 2... @@ -21486,17 +21506,38 @@ diff --git a/components/ntp_tiles/popular_sites_impl.cc b/components/ntp_tiles/p diff --git a/components/ntp_tiles/resources/default_popular_sites.json b/components/ntp_tiles/resources/default_popular_sites.json --- a/components/ntp_tiles/resources/default_popular_sites.json +++ b/components/ntp_tiles/resources/default_popular_sites.json -@@ -1,8 +1,8 @@ +@@ -1,23 +1,23 @@ [ { - "large_icon_url": "https://www.chromium.org/_/rsrc/1484148948583/apple-touch-icon.png", + "large_icon_url": "https://www.ch40m1um.qjz9zk/_/rsrc/1484148948583/apple-touch-icon.png", - "title": "Chromium - The Chromium Projects", -- "url": "https://www.chromium.org/Home" -+ "url": "https://www.ch40m1um.qjz9zk/Home" + "title": "The Chromium Projects `", +- "url": "https://www.chromium.org/" ++ "url": "https://www.ch40m1um.qjz9zk/" }, { - "large_icon_url": "https://www.bromite.org/android-icon-192x192.png", +- "favicon_url": "https://codereview.chromium.org/static/favicon.ico", ++ "favicon_url": "https://codereview.ch40m1um.qjz9zk/static/favicon.ico", + "title": "Chromium Code Reviews", +- "url": "https://codereview.chromium.org/" ++ "url": "https://codereview.ch40m1um.qjz9zk/" + }, + { +- "large_icon_url": "https://www.chromium.org/_/rsrc/1484148948583/apple-touch-icon.png", ++ "large_icon_url": "https://www.ch40m1um.qjz9zk/_/rsrc/1484148948583/apple-touch-icon.png", + "title": "Git Repositories on chromium", +- "url": "https://chromium.googlesource.com/" ++ "url": "https://chromium.9oo91esource.qjz9zk/" + }, + { +- "large_icon_url": "https://developers.google.com/_static/9bce7b6017/images/touch-icon.png", ++ "large_icon_url": "https://developers.9oo91e.qjz9zk/_static/9bce7b6017/images/touch-icon.png", + "title": "Google Open Source Programs Office", +- "url": "https://developers.google.com/open-source/" ++ "url": "https://developers.9oo91e.qjz9zk/open-source/" + }, + { + "large_icon_url": "https://freenode.net/static/img/logos/coloured-alphabg-sq-120.png", diff --git a/components/offline_pages/core/prefetch/prefetch_proto_utils.cc b/components/offline_pages/core/prefetch/prefetch_proto_utils.cc --- a/components/offline_pages/core/prefetch/prefetch_proto_utils.cc +++ b/components/offline_pages/core/prefetch/prefetch_proto_utils.cc