[iOS] Add feature detection methods to PageActionMenuMutator. [chromium/src : main]

0 views
Skip to first unread message

Adam Arcaro (Gerrit)

unread,
Sep 24, 2025, 3:30:53 PM (2 days ago) Sep 24
to Ibrahim Kanouche, Chromium LUCI CQ, chromium...@chromium.org, feature-me...@chromium.org, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org
Attention needed from Ibrahim Kanouche

Adam Arcaro added 1 comment

File ios/chrome/browser/intelligence/page_action_menu/ui/page_action_menu_mutator.h
Line 47, Patchset 2 (Latest):- (BOOL)isMicrophonePermissionGranted;
Adam Arcaro . unresolved

Do these represent whether the feature row should be shown at all?

Can we leverage the feature enum to simplify these to a single function? Something like `isFeatureAvailable:(FeatureEnum)feature`?

Open in Gerrit

Related details

Attention is currently required from:
  • Ibrahim Kanouche
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I0eec1031b1932e5a44d9184dfba5ef5b61755f27
Gerrit-Change-Number: 6979747
Gerrit-PatchSet: 2
Gerrit-Owner: Ibrahim Kanouche <kano...@google.com>
Gerrit-Reviewer: Adam Arcaro <ada...@google.com>
Gerrit-Reviewer: Ibrahim Kanouche <kano...@google.com>
Gerrit-Attention: Ibrahim Kanouche <kano...@google.com>
Gerrit-Comment-Date: Wed, 24 Sep 2025 19:30:49 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Ibrahim Kanouche (Gerrit)

unread,
Sep 25, 2025, 9:44:19 AM (17 hours ago) Sep 25
to Adam Arcaro, Chromium LUCI CQ, chromium...@chromium.org, feature-me...@chromium.org, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org
Attention needed from Adam Arcaro

Ibrahim Kanouche voted and added 1 comment

Votes added by Ibrahim Kanouche

Auto-Submit+1
Commit-Queue+1

1 comment

File ios/chrome/browser/intelligence/page_action_menu/ui/page_action_menu_mutator.h
Line 47, Patchset 2:- (BOOL)isMicrophonePermissionGranted;
Adam Arcaro . resolved

Do these represent whether the feature row should be shown at all?

Can we leverage the feature enum to simplify these to a single function? Something like `isFeatureAvailable:(FeatureEnum)feature`?

Ibrahim Kanouche

I updated this to only keep The availability methods will determine row visibility, while the others determine row content/state. But following our previous CL, we are just keeping the availability methods here.

Switched to using isFeatureAvailable to simplify the availability methods.

Open in Gerrit

Related details

Attention is currently required from:
  • Adam Arcaro
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I0eec1031b1932e5a44d9184dfba5ef5b61755f27
Gerrit-Change-Number: 6979747
Gerrit-PatchSet: 6
Gerrit-Owner: Ibrahim Kanouche <kano...@google.com>
Gerrit-Reviewer: Adam Arcaro <ada...@google.com>
Gerrit-Reviewer: Ibrahim Kanouche <kano...@google.com>
Gerrit-Attention: Adam Arcaro <ada...@google.com>
Gerrit-Comment-Date: Thu, 25 Sep 2025 13:44:14 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: Adam Arcaro <ada...@google.com>
satisfied_requirement
unsatisfied_requirement
open
diffy

Adam Arcaro (Gerrit)

unread,
Sep 25, 2025, 10:28:41 AM (17 hours ago) Sep 25
to Ibrahim Kanouche, Chromium LUCI CQ, chromium...@chromium.org, feature-me...@chromium.org, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org
Attention needed from Ibrahim Kanouche

Adam Arcaro voted and added 1 comment

Votes added by Adam Arcaro

Code-Review+1

1 comment

File ios/chrome/browser/intelligence/page_action_menu/ui/page_action_menu_mutator.h
Line 26, Patchset 6 (Latest):- (BOOL)isReaderModeActive;
Adam Arcaro . unresolved

Can you add a TODO to eventually migrate Reader Mode to the feature type system? It can probably be done post-MVP, unless you see an easy way to make it fit

Open in Gerrit

Related details

Attention is currently required from:
  • Ibrahim Kanouche
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Owners
  • requirement satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I0eec1031b1932e5a44d9184dfba5ef5b61755f27
Gerrit-Change-Number: 6979747
Gerrit-PatchSet: 6
Gerrit-Owner: Ibrahim Kanouche <kano...@google.com>
Gerrit-Reviewer: Adam Arcaro <ada...@google.com>
Gerrit-Reviewer: Ibrahim Kanouche <kano...@google.com>
Gerrit-Attention: Ibrahim Kanouche <kano...@google.com>
Gerrit-Comment-Date: Thu, 25 Sep 2025 14:28:34 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Ibrahim Kanouche (Gerrit)

unread,
Sep 25, 2025, 12:25:22 PM (15 hours ago) Sep 25
to Adam Arcaro, Chromium LUCI CQ, chromium...@chromium.org, feature-me...@chromium.org, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org

Ibrahim Kanouche voted and added 1 comment

Votes added by Ibrahim Kanouche

Auto-Submit+1
Commit-Queue+1

1 comment

File ios/chrome/browser/intelligence/page_action_menu/ui/page_action_menu_mutator.h
Line 26, Patchset 6:- (BOOL)isReaderModeActive;
Adam Arcaro . resolved

Can you add a TODO to eventually migrate Reader Mode to the feature type system? It can probably be done post-MVP, unless you see an easy way to make it fit

Ibrahim Kanouche

Done.

Open in Gerrit

Related details

Attention set is empty
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Owners
  • requirement satisfiedCode-Review
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I0eec1031b1932e5a44d9184dfba5ef5b61755f27
Gerrit-Change-Number: 6979747
Gerrit-PatchSet: 7
Gerrit-Owner: Ibrahim Kanouche <kano...@google.com>
Gerrit-Reviewer: Adam Arcaro <ada...@google.com>
Gerrit-Reviewer: Ibrahim Kanouche <kano...@google.com>
Gerrit-Comment-Date: Thu, 25 Sep 2025 16:25:14 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: Adam Arcaro <ada...@google.com>
satisfied_requirement
open
diffy

Ibrahim Kanouche (Gerrit)

unread,
Sep 25, 2025, 12:25:28 PM (15 hours ago) Sep 25
to Adam Arcaro, Chromium LUCI CQ, chromium...@chromium.org, feature-me...@chromium.org, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org

Ibrahim Kanouche voted Commit-Queue+2

Commit-Queue+2
Open in Gerrit

Related details

Attention set is empty
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Owners
  • requirement satisfiedCode-Review
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I0eec1031b1932e5a44d9184dfba5ef5b61755f27
Gerrit-Change-Number: 6979747
Gerrit-PatchSet: 7
Gerrit-Owner: Ibrahim Kanouche <kano...@google.com>
Gerrit-Reviewer: Adam Arcaro <ada...@google.com>
Gerrit-Reviewer: Ibrahim Kanouche <kano...@google.com>
Gerrit-Comment-Date: Thu, 25 Sep 2025 16:25:22 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
open
diffy

Chromium LUCI CQ (Gerrit)

unread,
Sep 25, 2025, 1:20:09 PM (14 hours ago) Sep 25
to Ibrahim Kanouche, Adam Arcaro, chromium...@chromium.org, feature-me...@chromium.org, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org

Chromium LUCI CQ submitted the change with unreviewed changes

Unreviewed changes

6 is the latest approved patch-set.
The change was submitted with unreviewed changes in the following files:

```
The name of the file: ios/chrome/browser/intelligence/page_action_menu/coordinator/page_action_menu_mediator.mm
Insertions: 1, Deletions: 0.

@@ -88,6 +88,7 @@
}

- (BOOL)isReaderModeAvailable {
+ // TODO(crbug.com/447371545): Migrate Reader Mode to the feature type system.
if (!_readerModeTabHelper) {
return NO;
}
```

Change information

Commit message:
[iOS] Add feature detection methods to PageActionMenuMutator.

Extends PageActionMenuMutator protocol with methods for detecting feature
availability (translate, popup blocker, permissions) and querying feature
state.
Bug: 447143165
Change-Id: I0eec1031b1932e5a44d9184dfba5ef5b61755f27
Commit-Queue: Ibrahim Kanouche <kano...@google.com>
Reviewed-by: Adam Arcaro <ada...@google.com>
Auto-Submit: Ibrahim Kanouche <kano...@google.com>
Cr-Commit-Position: refs/heads/main@{#1520706}
Files:
  • M ios/chrome/browser/intelligence/page_action_menu/coordinator/page_action_menu_mediator.mm
  • M ios/chrome/browser/intelligence/page_action_menu/ui/page_action_menu_mutator.h
Change size: M
Delta: 2 files changed, 51 insertions(+), 0 deletions(-)
Branch: refs/heads/main
Submit Requirements:
  • requirement satisfiedCode-Review: +1 by Adam Arcaro
Open in Gerrit
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: merged
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I0eec1031b1932e5a44d9184dfba5ef5b61755f27
Gerrit-Change-Number: 6979747
Gerrit-PatchSet: 8
Gerrit-Owner: Ibrahim Kanouche <kano...@google.com>
Gerrit-Reviewer: Adam Arcaro <ada...@google.com>
Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
Gerrit-Reviewer: Ibrahim Kanouche <kano...@google.com>
open
diffy
satisfied_requirement
Reply all
Reply to author
Forward
0 new messages