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

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

Update disable price shopping commerce integration patch

parent 925a39c6
Loading
Loading
Loading
Loading
+14 −13
Original line number Diff line number Diff line
From c175f9095a45cd31533888986346a0a5c156e4dc Mon Sep 17 00:00:00 2001
From 46e2963c06dceff64e08f889df062d2d35c0fdf1 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

Co-authored-by: Nishith Khanna <nishithkhanna@e.email>
---
 .../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 6916eddbf8144..0706ef94e4d7c 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
@@ -828,7 +828,7 @@ public abstract class AppMenuPropertiesDelegateImpl implements AppMenuProperties
@@ -1089,7 +1089,7 @@ public abstract class AppMenuPropertiesDelegateImpl implements AppMenuProperties
         }
 
         Profile profile = currentTab.getProfile();
@@ -21,14 +22,14 @@ index 6916eddbf8144..0706ef94e4d7c 100644
         ShoppingService.ProductInfo info = null;
         if (service != null) {
             info = service.getAvailableProductInfoForUrl(currentTab.getUrl());
@@ -861,7 +861,9 @@ public abstract class AppMenuPropertiesDelegateImpl implements AppMenuProperties
         } else {
             startPriceTrackingMenuItem.setVisible(true);
             stopPriceTrackingMenuItem.setVisible(false);
-        }
+        }*/
+        startPriceTrackingMenuItem.setVisible(false);
+        stopPriceTrackingMenuItem.setVisible(false);
@@ -1114,8 +1114,8 @@ public abstract class AppMenuPropertiesDelegateImpl implements AppMenuProperties
             boolean isSubscribed = service.isSubscribedFromCache(sub);
             showStartPriceTracking = !isSubscribed;
         }
-
-        return showStartPriceTracking;
+        */
+        return null;
     }
 
     /**