Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cad2d328 authored by Mohammed Althaf T's avatar Mohammed Althaf T 😊
Browse files

Browser: port rest of bromite patches

parent ef2c5a8e
Loading
Loading
Loading
Loading
Loading
+59 −0
Original line number Original line Diff line number Diff line
From cfcccfc152d441243b1856d97e9dcb9975301474 Mon Sep 17 00:00:00 2001
From: althafvly <althafvly@gmail.com>
Date: Wed, 4 Oct 2023 19:36:24 +0530
Subject: [PATCH 1/2] Browser: disable price shopping commerce integration

---
 .../browser/app/appmenu/AppMenuPropertiesDelegateImpl.java  | 6 ++++--
 components/commerce/core/commerce_feature_list.cc           | 4 ++--
 2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/chrome/android/java/src/org/chromium/chrome/browser/app/appmenu/AppMenuPropertiesDelegateImpl.java b/chrome/android/java/src/org/chromium/chrome/browser/app/appmenu/AppMenuPropertiesDelegateImpl.java
index 4cf89cda35950..56762ead152b8 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/app/appmenu/AppMenuPropertiesDelegateImpl.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/app/appmenu/AppMenuPropertiesDelegateImpl.java
@@ -1100,7 +1100,7 @@ public class AppMenuPropertiesDelegateImpl implements AppMenuPropertiesDelegate
      */
     protected void updatePriceTrackingMenuItemRow(@NonNull MenuItem startPriceTrackingMenuItem,
             @NonNull MenuItem stopPriceTrackingMenuItem, @Nullable Tab currentTab) {
-        ShoppingService service =
+        /*ShoppingService service =
                 ShoppingServiceFactory.getForProfile(Profile.getLastUsedRegularProfile());
         ShoppingService.ProductInfo info = null;
         if (service != null && currentTab != null) {
@@ -1131,7 +1131,9 @@ public class AppMenuPropertiesDelegateImpl implements AppMenuPropertiesDelegate
         } else {
             startPriceTrackingMenuItem.setVisible(true);
             stopPriceTrackingMenuItem.setVisible(false);
-        }
+        }*/
+        startPriceTrackingMenuItem.setVisible(false);
+        stopPriceTrackingMenuItem.setVisible(false);
     }
 
     /**
diff --git a/components/commerce/core/commerce_feature_list.cc b/components/commerce/core/commerce_feature_list.cc
index 62507100a051d..cdd4d26ad3607 100644
--- a/components/commerce/core/commerce_feature_list.cc
+++ b/components/commerce/core/commerce_feature_list.cc
@@ -117,7 +117,7 @@ BASE_FEATURE(kCommerceAllowLocalImages,
 
 BASE_FEATURE(kCommerceAllowOnDemandBookmarkUpdates,
              "CommerceAllowOnDemandBookmarkUpdates",
-             base::FEATURE_ENABLED_BY_DEFAULT);
+             base::FEATURE_DISABLED_BY_DEFAULT);
 
 BASE_FEATURE(kCommerceAllowOnDemandBookmarkBatchUpdates,
              "CommerceAllowOnDemandBookmarkBatchUpdates",
@@ -211,7 +211,7 @@ BASE_FEATURE(kShoppingPDPMetricsRegionLaunched,
              "ShoppingPDPMetricsRegionLaunched",
              base::FEATURE_ENABLED_BY_DEFAULT);
 
-BASE_FEATURE(kRetailCoupons, "RetailCoupons", base::FEATURE_ENABLED_BY_DEFAULT);
+BASE_FEATURE(kRetailCoupons, "RetailCoupons", base::FEATURE_DISABLED_BY_DEFAULT);
 
 BASE_FEATURE(kCommerceDeveloper,
              "CommerceDeveloper",
-- 
2.34.1
+38620 −0

File added.

Preview size limit exceeded, changes collapsed.

+2 −0
Original line number Original line Diff line number Diff line
@@ -50,3 +50,5 @@
0034-Browser-Enable-unified-autoplay-by-default.patch
0034-Browser-Enable-unified-autoplay-by-default.patch


0001-fixup-Revert-Block-gateway-attacks-via-websockets.patch
0001-fixup-Revert-Block-gateway-attacks-via-websockets.patch
0001-Browser-disable-price-shopping-commerce-integration.patch
0002-Automated-domain-substitution.patch
+0 −4
Original line number Original line Diff line number Diff line
# List of removed patches in bromite
Remove-price-shopping-commerce-integrations.patch
Automated-domain-substitution.patch

# List of removed patches in e
# List of removed patches in e
0028-Change-accent-and-switch-according-to-our-palette.patch
0028-Change-accent-and-switch-according-to-our-palette.patch
0034-Change-accent-to-match-our-palette.patch
0034-Change-accent-to-match-our-palette.patch