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

Commit c8eb4796 authored by Nishith  Khanna's avatar Nishith Khanna
Browse files

Update disable price shopping commerce integration patch

parent 7ffb9276
Loading
Loading
Loading
Loading
+16 −16
Original line number Diff line number Diff line
From d0c66fd78c61d3452a3b23b56dcd20c5c296c914 Mon Sep 17 00:00:00 2001
From e8c9870357975dea86b8dd32c850113228ee5217 Mon Sep 17 00:00:00 2001
From: althafvly <althafvly@gmail.com>
Date: Wed, 4 Oct 2023 19:36:24 +0530
Subject: Browser: disable price shopping commerce integration

---
 .../browser/app/appmenu/AppMenuPropertiesDelegateImpl.java  | 6 ++++--
 .../browser/app/appmenu/AppMenuPropertiesDelegateImpl.java  | 6 +++---
 components/commerce/core/commerce_feature_list.cc           | 4 ++--
 2 files changed, 6 insertions(+), 4 deletions(-)
 2 files changed, 5 insertions(+), 5 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 3281c84e0528c..58da2f8a4f409 100644
index 3281c84e0528c..28fe8ea09e281 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
@@ -852,7 +852,9 @@ public abstract class AppMenuPropertiesDelegateImpl implements AppMenuProperties
                     mTabModelSelector.getCurrentModel().getProfile());
         }
         return false;
-    }
+        }*/
+        startPriceTrackingMenuItem.setVisible(false);
+        stopPriceTrackingMenuItem.setVisible(false);
 
     /** Returns true if a badge (i.e. a red-dot) should be shown on the menu item icon. */
     protected boolean shouldShowBadgeOnMenuItemIcon(@IdRes int itemId) {
@@ -1089,7 +1091,7 @@ public abstract class AppMenuPropertiesDelegateImpl implements AppMenuProperties
@@ -1089,7 +1089,7 @@ public abstract class AppMenuPropertiesDelegateImpl implements AppMenuProperties
         }
 
         Profile profile = currentTab.getProfile();
@@ -32,6 +21,17 @@ index 3281c84e0528c..58da2f8a4f409 100644
         ShoppingService.ProductInfo info = null;
         if (service != null) {
             info = service.getAvailableProductInfoForUrl(currentTab.getUrl());
@@ -1114,8 +1114,8 @@ public abstract class AppMenuPropertiesDelegateImpl implements AppMenuProperties
             boolean isSubscribed = service.isSubscribedFromCache(sub);
             showStartPriceTracking = !isSubscribed;
         }
-
-        return showStartPriceTracking;
+        */
+        return null;
     }
 
     /**
diff --git a/components/commerce/core/commerce_feature_list.cc b/components/commerce/core/commerce_feature_list.cc
index f6eabb4d132bc..e67a0c7cb46e0 100644
--- a/components/commerce/core/commerce_feature_list.cc