- (BOOL)isMicrophonePermissionGranted;
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`?
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Auto-Submit | +1 |
Commit-Queue | +1 |
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`?
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.
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Code-Review | +1 |
- (BOOL)isReaderModeActive;
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
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Auto-Submit | +1 |
Commit-Queue | +1 |
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
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
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;
}
```
[iOS] Add feature detection methods to PageActionMenuMutator.
Extends PageActionMenuMutator protocol with methods for detecting feature
availability (translate, popup blocker, permissions) and querying feature
state.
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |