[site_info] Create UI for TrackingProtectionSettings section [chromium/src : main]

0 views
Skip to first unread message

Gauthier Ambard (Gerrit)

unread,
Sep 25, 2025, 10:56:05 AM (3 days ago) Sep 25
to Chirag Arora, Fiona Macintosh, Maranda Bodas, Cam Patton, AyeAye, chromium...@chromium.org, Permissions Reviews, feature-me...@chromium.org, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org
Attention needed from Cam Patton, Chirag Arora, Fiona Macintosh and Maranda Bodas

Gauthier Ambard added 6 comments

File ios/chrome/browser/page_info/tracking_protection/coordinator/page_info_tracking_protection_mediator.mm
Line 43, Patchset 3 (Latest):- (GURL)currentURL {
Gauthier Ambard . unresolved

Can you put the private methods in a#pragma mark - Private?

Line 81, Patchset 3 (Latest): // TODO: Add logic to open the Settings page.
Gauthier Ambard . unresolved

What is supposed to be opened here? Can't the VC open it?

File ios/chrome/browser/page_info/ui_bundled/page_info_view_controller.mm
Line 221, Patchset 3 (Latest): [snapshot
appendItemsWithIdentifiers:@[ @(ItemIdentifierTrackingProtection) ]
intoSectionWithIdentifier:@(SectionIdentifierTrackingProtection)];
[snapshot
appendItemsWithIdentifiers:@[ @(
ItemIdentifierTrackingProtectionButton) ]
intoSectionWithIdentifier:@(SectionIdentifierTrackingProtection)];
Gauthier Ambard . unresolved

Can't you bundle both?

Line 493, Patchset 3 (Latest): DequeueTableViewCell<TableViewDetailIconCell>(tableView);
Gauthier Ambard . unresolved

Why not using the same as the other cells? That would ensure they have the same design.

Line 549, Patchset 3 (Latest): DequeueTableViewCell<TableViewTextCell>(tableView);
Gauthier Ambard . unresolved

Same, you should be able to reuse ContentConfiguration?

File ios/chrome/browser/shared/ui/table_view/cells/table_view_detail_icon_item.h
Line 108, Patchset 3 (Latest):- (void)createDetailTextLabel;
Gauthier Ambard . unresolved

Use content configuration and remove that.

Open in Gerrit

Related details

Attention is currently required from:
  • Cam Patton
  • Chirag Arora
  • Fiona Macintosh
  • Maranda Bodas
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: I11910c3f8c9499e36c383ab246bb6f03c0702235
Gerrit-Change-Number: 6983503
Gerrit-PatchSet: 3
Gerrit-Owner: Chirag Arora <heyc...@google.com>
Gerrit-Reviewer: Cam Patton <camp...@google.com>
Gerrit-Reviewer: Fiona Macintosh <fmaci...@google.com>
Gerrit-Reviewer: Gauthier Ambard <gam...@chromium.org>
Gerrit-Reviewer: Maranda Bodas <mbo...@google.com>
Gerrit-CC: Permissions Reviews <permissio...@chromium.org>
Gerrit-Attention: Maranda Bodas <mbo...@google.com>
Gerrit-Attention: Fiona Macintosh <fmaci...@google.com>
Gerrit-Attention: Cam Patton <camp...@google.com>
Gerrit-Attention: Chirag Arora <heyc...@google.com>
Gerrit-Comment-Date: Thu, 25 Sep 2025 14:55:50 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Chirag Arora (Gerrit)

unread,
Sep 25, 2025, 11:08:55 AM (3 days ago) Sep 25
to Fiona Macintosh, Gauthier Ambard, Maranda Bodas, Cam Patton, AyeAye, chromium...@chromium.org, Permissions Reviews, feature-me...@chromium.org, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org
Attention needed from Fiona Macintosh and Gauthier Ambard

Chirag Arora added 4 comments

File ios/chrome/browser/page_info/tracking_protection/coordinator/page_info_tracking_protection_mediator.mm
Line 81, Patchset 3 (Latest): // TODO: Add logic to open the Settings page.
Gauthier Ambard . unresolved

What is supposed to be opened here? Can't the VC open it?

Chirag Arora

The settings page which is specific for Tracking Protection. Therefore, I thought this was a more appropriate place to put it.

File ios/chrome/browser/page_info/ui_bundled/page_info_view_controller.mm
Line 493, Patchset 3 (Latest): DequeueTableViewCell<TableViewDetailIconCell>(tableView);
Gauthier Ambard . unresolved

Why not using the same as the other cells? That would ensure they have the same design.

Chirag Arora

They are all extended from the same base class but there is a specific type of cell for each use-case. Here we want to show the cell with an icon and detail text. Hence, the usage of this class. Visually, it blends in with other cells and looks exactly as it should.

Here are all the cell types the library offers: https://source.chromium.org/chromium/chromium/src/+/main:ios/chrome/browser/shared/ui/table_view/cells/

Line 549, Patchset 3 (Latest): DequeueTableViewCell<TableViewTextCell>(tableView);
Gauthier Ambard . unresolved

Same, you should be able to reuse ContentConfiguration?

File ios/chrome/browser/shared/ui/table_view/cells/table_view_detail_icon_item.h
Line 108, Patchset 3 (Latest):- (void)createDetailTextLabel;
Gauthier Ambard . unresolved

Use content configuration and remove that.

Chirag Arora

I tried using that initially, but it doesn't offers a way to set the detail text like we want. There is a `subtitle` property but it doesn't has correct padding we need for the `title`. Plus, we'd like to set an `NSAttributedString` to highlight the "Send feedback" text. But `subtitle` is of type `NSString`.

Let me know if you are referring to some other class. Because I was trying to use [TableViewCellContentConfiguration](https://source.chromium.org/chromium/chromium/src/+/main:ios/chrome/browser/shared/ui/table_view/cells/table_view_cell_content_configuration.h)

Open in Gerrit

Related details

Attention is currently required from:
  • Fiona Macintosh
  • Gauthier Ambard
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: I11910c3f8c9499e36c383ab246bb6f03c0702235
Gerrit-Change-Number: 6983503
Gerrit-PatchSet: 3
Gerrit-Owner: Chirag Arora <heyc...@google.com>
Gerrit-Reviewer: Cam Patton <camp...@google.com>
Gerrit-Reviewer: Fiona Macintosh <fmaci...@google.com>
Gerrit-Reviewer: Gauthier Ambard <gam...@chromium.org>
Gerrit-Reviewer: Maranda Bodas <mbo...@google.com>
Gerrit-CC: Permissions Reviews <permissio...@chromium.org>
Gerrit-Attention: Fiona Macintosh <fmaci...@google.com>
Gerrit-Attention: Gauthier Ambard <gam...@chromium.org>
Gerrit-Comment-Date: Thu, 25 Sep 2025 15:08:41 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Gauthier Ambard <gam...@chromium.org>
satisfied_requirement
unsatisfied_requirement
open
diffy

Gauthier Ambard (Gerrit)

unread,
Sep 25, 2025, 11:20:47 AM (3 days ago) Sep 25
to Chirag Arora, Fiona Macintosh, Maranda Bodas, Cam Patton, AyeAye, chromium...@chromium.org, Permissions Reviews, feature-me...@chromium.org, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org
Attention needed from Chirag Arora and Fiona Macintosh

Gauthier Ambard added 3 comments

File ios/chrome/browser/page_info/tracking_protection/coordinator/page_info_tracking_protection_mediator.mm
Line 81, Patchset 3 (Latest): // TODO: Add logic to open the Settings page.
Gauthier Ambard . unresolved

What is supposed to be opened here? Can't the VC open it?

Chirag Arora

The settings page which is specific for Tracking Protection. Therefore, I thought this was a more appropriate place to put it.

Gauthier Ambard

Mediators are supposed to interact with the model. This looks like a command that can be sent from the VC.

File ios/chrome/browser/page_info/ui_bundled/page_info_view_controller.mm
Line 493, Patchset 3 (Latest): DequeueTableViewCell<TableViewDetailIconCell>(tableView);
Gauthier Ambard . unresolved

Why not using the same as the other cells? That would ensure they have the same design.

Chirag Arora

They are all extended from the same base class but there is a specific type of cell for each use-case. Here we want to show the cell with an icon and detail text. Hence, the usage of this class. Visually, it blends in with other cells and looks exactly as it should.

Here are all the cell types the library offers: https://source.chromium.org/chromium/chromium/src/+/main:ios/chrome/browser/shared/ui/table_view/cells/

Gauthier Ambard

That's no longer true. `TableViewDetailIconCell` inherit from `LegacyTableViewCell` and cells from `TableViewCellContentConfiguration` are `TableViewCell`.

Yes they are very similar but I am also in the middle of unifying them so it would be nice if this is using the new ones directly.

Is there something missing from the configurations preventing you from using it?

Line 549, Patchset 3 (Latest): DequeueTableViewCell<TableViewTextCell>(tableView);
Gauthier Ambard . unresolved

Same, you should be able to reuse ContentConfiguration?

Chirag Arora

Are you referring to [TableViewCellContentConfiguration](https://source.chromium.org/chromium/chromium/src/+/main:ios/chrome/browser/shared/ui/table_view/cells/table_view_cell_content_configuration.h)?

Gauthier Ambard

Yes

Open in Gerrit

Related details

Attention is currently required from:
  • Chirag Arora
  • Fiona Macintosh
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: I11910c3f8c9499e36c383ab246bb6f03c0702235
Gerrit-Change-Number: 6983503
Gerrit-PatchSet: 3
Gerrit-Owner: Chirag Arora <heyc...@google.com>
Gerrit-Reviewer: Cam Patton <camp...@google.com>
Gerrit-Reviewer: Fiona Macintosh <fmaci...@google.com>
Gerrit-Reviewer: Gauthier Ambard <gam...@chromium.org>
Gerrit-Reviewer: Maranda Bodas <mbo...@google.com>
Gerrit-CC: Permissions Reviews <permissio...@chromium.org>
Gerrit-Attention: Fiona Macintosh <fmaci...@google.com>
Gerrit-Attention: Chirag Arora <heyc...@google.com>
Gerrit-Comment-Date: Thu, 25 Sep 2025 15:20:34 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Chirag Arora <heyc...@google.com>
Comment-In-Reply-To: Gauthier Ambard <gam...@chromium.org>
satisfied_requirement
unsatisfied_requirement
open
diffy

Gauthier Ambard (Gerrit)

unread,
Sep 25, 2025, 11:23:38 AM (3 days ago) Sep 25
to Chirag Arora, Fiona Macintosh, Maranda Bodas, Cam Patton, AyeAye, chromium...@chromium.org, Permissions Reviews, feature-me...@chromium.org, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org
Attention needed from Chirag Arora and Fiona Macintosh

Gauthier Ambard added 2 comments

File ios/chrome/browser/page_info/ui_bundled/page_info_view_controller.mm
Line 505, Patchset 3 (Latest): NSMutableAttributedString* detailText = [[NSMutableAttributedString
alloc]
initWithString:
l10n_util::GetNSString(
IDS_IOS_PAGE_INFO_TRACKING_PROTECTIONS_PAUSED_DETAIL_TEXT)];
NSAttributedString* sendFeedbackText = [[NSAttributedString alloc]
initWithString:
l10n_util::GetNSString(
IDS_IOS_PAGE_INFO_TRACKING_PROTECTIONS_PAUSED_DETAIL_TEXT_SEND_FEEDBACK)
attributes:@{
NSForegroundColorAttributeName :
[UIColor colorNamed:kBlueColor],
}];

[detailText appendAttributedString:[[NSAttributedString alloc]
initWithString:kSpaceDelimiter]];
[detailText appendAttributedString:sendFeedbackText];
Gauthier Ambard . unresolved

I am not sure this works for all languages. Could you make it a unique string for translation?

File ios/chrome/browser/shared/ui/table_view/cells/table_view_detail_icon_item.h
Line 108, Patchset 3 (Latest):- (void)createDetailTextLabel;
Gauthier Ambard . unresolved

Use content configuration and remove that.

Chirag Arora

I tried using that initially, but it doesn't offers a way to set the detail text like we want. There is a `subtitle` property but it doesn't has correct padding we need for the `title`. Plus, we'd like to set an `NSAttributedString` to highlight the "Send feedback" text. But `subtitle` is of type `NSString`.

Let me know if you are referring to some other class. Because I was trying to use [TableViewCellContentConfiguration](https://source.chromium.org/chromium/chromium/src/+/main:ios/chrome/browser/shared/ui/table_view/cells/table_view_cell_content_configuration.h)

Gauthier Ambard

Ah, I haven't added support for attributed strings yet, true. Maybe I should do that. Can you use a string for now?

Gerrit-Comment-Date: Thu, 25 Sep 2025 15:23:24 +0000
satisfied_requirement
unsatisfied_requirement
open
diffy

Chirag Arora (Gerrit)

unread,
Sep 25, 2025, 11:27:21 AM (3 days ago) Sep 25
to Fiona Macintosh, Gauthier Ambard, Maranda Bodas, Cam Patton, AyeAye, chromium...@chromium.org, Permissions Reviews, feature-me...@chromium.org, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org
Attention needed from Fiona Macintosh and Gauthier Ambard

Chirag Arora added 1 comment

File ios/chrome/browser/page_info/ui_bundled/page_info_view_controller.mm
Line 493, Patchset 3 (Latest): DequeueTableViewCell<TableViewDetailIconCell>(tableView);
Gauthier Ambard . unresolved

Why not using the same as the other cells? That would ensure they have the same design.

Chirag Arora

They are all extended from the same base class but there is a specific type of cell for each use-case. Here we want to show the cell with an icon and detail text. Hence, the usage of this class. Visually, it blends in with other cells and looks exactly as it should.

Here are all the cell types the library offers: https://source.chromium.org/chromium/chromium/src/+/main:ios/chrome/browser/shared/ui/table_view/cells/

Gauthier Ambard

That's no longer true. `TableViewDetailIconCell` inherit from `LegacyTableViewCell` and cells from `TableViewCellContentConfiguration` are `TableViewCell`.

Yes they are very similar but I am also in the middle of unifying them so it would be nice if this is using the new ones directly.

Is there something missing from the configurations preventing you from using it?

Chirag Arora

With `TableViewCellContentConfiguration`, is there a way to add a detail text of type `NSAttribuedString`?

Also, refer to this previous comment: https://chromium-review.googlesource.com/c/chromium/src/+/6983503/comment/8f57348f_46113376/

Open in Gerrit

Related details

Attention is currently required from:
  • Fiona Macintosh
  • Gauthier Ambard
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: I11910c3f8c9499e36c383ab246bb6f03c0702235
Gerrit-Change-Number: 6983503
Gerrit-PatchSet: 3
Gerrit-Owner: Chirag Arora <heyc...@google.com>
Gerrit-Reviewer: Cam Patton <camp...@google.com>
Gerrit-Reviewer: Fiona Macintosh <fmaci...@google.com>
Gerrit-Reviewer: Gauthier Ambard <gam...@chromium.org>
Gerrit-Reviewer: Maranda Bodas <mbo...@google.com>
Gerrit-CC: Permissions Reviews <permissio...@chromium.org>
Gerrit-Attention: Fiona Macintosh <fmaci...@google.com>
Gerrit-Attention: Gauthier Ambard <gam...@chromium.org>
Gerrit-Comment-Date: Thu, 25 Sep 2025 15:27:07 +0000
satisfied_requirement
unsatisfied_requirement
open
diffy

Chirag Arora (Gerrit)

unread,
Sep 25, 2025, 12:25:12 PM (3 days ago) Sep 25
to Fiona Macintosh, Gauthier Ambard, Maranda Bodas, Cam Patton, AyeAye, chromium...@chromium.org, Permissions Reviews, feature-me...@chromium.org, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org
Attention needed from Fiona Macintosh and Gauthier Ambard

Chirag Arora added 2 comments

File ios/chrome/browser/page_info/ui_bundled/page_info_view_controller.mm
Line 505, Patchset 3 (Latest): NSMutableAttributedString* detailText = [[NSMutableAttributedString
alloc]
initWithString:
l10n_util::GetNSString(
IDS_IOS_PAGE_INFO_TRACKING_PROTECTIONS_PAUSED_DETAIL_TEXT)];
NSAttributedString* sendFeedbackText = [[NSAttributedString alloc]
initWithString:
l10n_util::GetNSString(
IDS_IOS_PAGE_INFO_TRACKING_PROTECTIONS_PAUSED_DETAIL_TEXT_SEND_FEEDBACK)
attributes:@{
NSForegroundColorAttributeName :
[UIColor colorNamed:kBlueColor],
}];

[detailText appendAttributedString:[[NSAttributedString alloc]
initWithString:kSpaceDelimiter]];
[detailText appendAttributedString:sendFeedbackText];
Gauthier Ambard . unresolved

I am not sure this works for all languages. Could you make it a unique string for translation?

Chirag Arora

"Send feedback" is actually not part of the sentence. It's after the full-stop and I think should be treated like a separate string.

File ios/chrome/browser/shared/ui/table_view/cells/table_view_detail_icon_item.h
Line 108, Patchset 3 (Latest):- (void)createDetailTextLabel;
Gauthier Ambard . unresolved

Use content configuration and remove that.

Chirag Arora

I tried using that initially, but it doesn't offers a way to set the detail text like we want. There is a `subtitle` property but it doesn't has correct padding we need for the `title`. Plus, we'd like to set an `NSAttributedString` to highlight the "Send feedback" text. But `subtitle` is of type `NSString`.

Let me know if you are referring to some other class. Because I was trying to use [TableViewCellContentConfiguration](https://source.chromium.org/chromium/chromium/src/+/main:ios/chrome/browser/shared/ui/table_view/cells/table_view_cell_content_configuration.h)

Gauthier Ambard

Ah, I haven't added support for attributed strings yet, true. Maybe I should do that. Can you use a string for now?

Chirag Arora

Then I cannot highlight the "Send feedback" text which should look like a link.

Gerrit-Comment-Date: Thu, 25 Sep 2025 16:24:57 +0000
satisfied_requirement
unsatisfied_requirement
open
diffy

Fiona Macintosh (Gerrit)

unread,
Sep 25, 2025, 12:26:03 PM (3 days ago) Sep 25
to Chirag Arora, Gauthier Ambard, Maranda Bodas, Cam Patton, AyeAye, chromium...@chromium.org, Permissions Reviews, feature-me...@chromium.org, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org
Attention needed from Chirag Arora and Gauthier Ambard

Fiona Macintosh added 1 comment

File components/privacy_sandbox_strings.grd
Line 402, Patchset 3 (Latest): <!-- Site Info (iOS) -->
<message name="IDS_IOS_PAGE_INFO_TRACKING_PROTECTIONS_SECTION_FOOTER" meaning="DoNotTranslate" desc="Footer text shown below the Tracking Protection section of the 'Site Info' sheet. Provides a quick link to the Tracking Protection Settings page by highlighting the 'Settings' part of the text.">
Review available Incognito tracking protections in <ph name="BEGIN_LINK">BEGIN_LINK</ph>Settings<ph name="END_LINK">END_LINK</ph>.
</message>
<message name="IDS_IOS_PAGE_INFO_TRACKING_PROTECTIONS_PAUSED_DETAIL_TEXT" meaning="DoNotTranslate" desc="Descriptive text on the 'Site Info' sheet shown when tracking protections are paused on the current site. Explains that tracking protections will remain paused on this site until the user closes all Incognito tabs.">
Protections are paused until all Incognito tabs are closed.
</message>
<message name="IDS_IOS_PAGE_INFO_TRACKING_PROTECTIONS_PAUSED_DETAIL_TEXT_SEND_FEEDBACK" meaning="DoNotTranslate" desc="Part of the descriptive text on the 'Site Info' sheet shown when tracking protections are paused on the current site. This is part of the feedback link so the user can give feedback as to why they paused tracking protections on this site.">
Send feeback
</message>
<message name="IDS_IOS_PAGE_INFO_TRACKING_PROTECTIONS_RESUMED" meaning="DoNotTranslate" desc="Title of tracking protection section when tracking protection is enabled for the current site.">
Site not working?
</message>
Fiona Macintosh . unresolved

Please follow instructions I wrote [here](https://docs.google.com/document/d/1gx3qCIo3pY_9aE7LIpny0w0kqgT0rFJWHz5K-egtavA/edit?tab=t.0#bookmark=id.rihyix3zcf8y) and use `translateable="false"` rather than `meaning="DoNotTranslate"`. Then remove `Skip-Translation-Screenshots-Check: True` from your CL description; if you're correctly marking these strings as not yet translateable then it's not needed

Open in Gerrit

Related details

Attention is currently required from:
  • Chirag Arora
  • Gauthier Ambard
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: I11910c3f8c9499e36c383ab246bb6f03c0702235
Gerrit-Change-Number: 6983503
Gerrit-PatchSet: 3
Gerrit-Owner: Chirag Arora <heyc...@google.com>
Gerrit-Reviewer: Cam Patton <camp...@google.com>
Gerrit-Reviewer: Fiona Macintosh <fmaci...@google.com>
Gerrit-Reviewer: Gauthier Ambard <gam...@chromium.org>
Gerrit-Reviewer: Maranda Bodas <mbo...@google.com>
Gerrit-CC: Permissions Reviews <permissio...@chromium.org>
Gerrit-Attention: Chirag Arora <heyc...@google.com>
Gerrit-Attention: Gauthier Ambard <gam...@chromium.org>
Gerrit-Comment-Date: Thu, 25 Sep 2025 16:25:57 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Chirag Arora (Gerrit)

unread,
Sep 25, 2025, 1:37:04 PM (3 days ago) Sep 25
to Fiona Macintosh, Gauthier Ambard, AyeAye, chromium...@chromium.org, Permissions Reviews, feature-me...@chromium.org, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org
Attention needed from Fiona Macintosh and Gauthier Ambard

Chirag Arora added 8 comments

File components/privacy_sandbox_strings.grd
Line 402, Patchset 3: <!-- Site Info (iOS) -->

<message name="IDS_IOS_PAGE_INFO_TRACKING_PROTECTIONS_SECTION_FOOTER" meaning="DoNotTranslate" desc="Footer text shown below the Tracking Protection section of the 'Site Info' sheet. Provides a quick link to the Tracking Protection Settings page by highlighting the 'Settings' part of the text.">
Review available Incognito tracking protections in <ph name="BEGIN_LINK">BEGIN_LINK</ph>Settings<ph name="END_LINK">END_LINK</ph>.
</message>
<message name="IDS_IOS_PAGE_INFO_TRACKING_PROTECTIONS_PAUSED_DETAIL_TEXT" meaning="DoNotTranslate" desc="Descriptive text on the 'Site Info' sheet shown when tracking protections are paused on the current site. Explains that tracking protections will remain paused on this site until the user closes all Incognito tabs.">
Protections are paused until all Incognito tabs are closed.
</message>
<message name="IDS_IOS_PAGE_INFO_TRACKING_PROTECTIONS_PAUSED_DETAIL_TEXT_SEND_FEEDBACK" meaning="DoNotTranslate" desc="Part of the descriptive text on the 'Site Info' sheet shown when tracking protections are paused on the current site. This is part of the feedback link so the user can give feedback as to why they paused tracking protections on this site.">
Send feeback
</message>
<message name="IDS_IOS_PAGE_INFO_TRACKING_PROTECTIONS_RESUMED" meaning="DoNotTranslate" desc="Title of tracking protection section when tracking protection is enabled for the current site.">
Site not working?
</message>
Fiona Macintosh . resolved

Please follow instructions I wrote [here](https://docs.google.com/document/d/1gx3qCIo3pY_9aE7LIpny0w0kqgT0rFJWHz5K-egtavA/edit?tab=t.0#bookmark=id.rihyix3zcf8y) and use `translateable="false"` rather than `meaning="DoNotTranslate"`. Then remove `Skip-Translation-Screenshots-Check: True` from your CL description; if you're correctly marking these strings as not yet translateable then it's not needed

Chirag Arora

Done

File ios/chrome/browser/page_info/tracking_protection/coordinator/page_info_tracking_protection_mediator.mm
Line 43, Patchset 3:- (GURL)currentURL {
Gauthier Ambard . resolved

Can you put the private methods in a#pragma mark - Private?

Chirag Arora

Done

Line 81, Patchset 3: // TODO: Add logic to open the Settings page.
Gauthier Ambard . resolved

What is supposed to be opened here? Can't the VC open it?

Chirag Arora

The settings page which is specific for Tracking Protection. Therefore, I thought this was a more appropriate place to put it.

Gauthier Ambard

Mediators are supposed to interact with the model. This looks like a command that can be sent from the VC.

Chirag Arora

Done

File ios/chrome/browser/page_info/ui_bundled/page_info_view_controller.mm

appendItemsWithIdentifiers:@[ @(ItemIdentifierTrackingProtection) ]
intoSectionWithIdentifier:@(SectionIdentifierTrackingProtection)];
[snapshot
appendItemsWithIdentifiers:@[ @(
ItemIdentifierTrackingProtectionButton) ]
intoSectionWithIdentifier:@(SectionIdentifierTrackingProtection)];
Gauthier Ambard . resolved

Can't you bundle both?

Chirag Arora

Done

Line 493, Patchset 3: DequeueTableViewCell<TableViewDetailIconCell>(tableView);
Gauthier Ambard . resolved

Why not using the same as the other cells? That would ensure they have the same design.

Chirag Arora

They are all extended from the same base class but there is a specific type of cell for each use-case. Here we want to show the cell with an icon and detail text. Hence, the usage of this class. Visually, it blends in with other cells and looks exactly as it should.

Here are all the cell types the library offers: https://source.chromium.org/chromium/chromium/src/+/main:ios/chrome/browser/shared/ui/table_view/cells/

Gauthier Ambard

That's no longer true. `TableViewDetailIconCell` inherit from `LegacyTableViewCell` and cells from `TableViewCellContentConfiguration` are `TableViewCell`.

Yes they are very similar but I am also in the middle of unifying them so it would be nice if this is using the new ones directly.

Is there something missing from the configurations preventing you from using it?

Chirag Arora

With `TableViewCellContentConfiguration`, is there a way to add a detail text of type `NSAttribuedString`?

Also, refer to this previous comment: https://chromium-review.googlesource.com/c/chromium/src/+/6983503/comment/8f57348f_46113376/

Chirag Arora

Done

Line 505, Patchset 3: NSMutableAttributedString* detailText = [[NSMutableAttributedString

alloc]
initWithString:
l10n_util::GetNSString(
IDS_IOS_PAGE_INFO_TRACKING_PROTECTIONS_PAUSED_DETAIL_TEXT)];
NSAttributedString* sendFeedbackText = [[NSAttributedString alloc]
initWithString:
l10n_util::GetNSString(
IDS_IOS_PAGE_INFO_TRACKING_PROTECTIONS_PAUSED_DETAIL_TEXT_SEND_FEEDBACK)
attributes:@{
NSForegroundColorAttributeName :
[UIColor colorNamed:kBlueColor],
}];

[detailText appendAttributedString:[[NSAttributedString alloc]
initWithString:kSpaceDelimiter]];
[detailText appendAttributedString:sendFeedbackText];
Gauthier Ambard . unresolved

I am not sure this works for all languages. Could you make it a unique string for translation?

Chirag Arora

"Send feedback" is actually not part of the sentence. It's after the full-stop and I think should be treated like a separate string.

Chirag Arora

Done

Line 549, Patchset 3: DequeueTableViewCell<TableViewTextCell>(tableView);
Gauthier Ambard . resolved

Same, you should be able to reuse ContentConfiguration?

Chirag Arora

Are you referring to [TableViewCellContentConfiguration](https://source.chromium.org/chromium/chromium/src/+/main:ios/chrome/browser/shared/ui/table_view/cells/table_view_cell_content_configuration.h)?

Gauthier Ambard

Yes

Chirag Arora

Done

File ios/chrome/browser/shared/ui/table_view/cells/table_view_detail_icon_item.h
Line 108, Patchset 3:- (void)createDetailTextLabel;
Gauthier Ambard . resolved

Use content configuration and remove that.

Chirag Arora

I tried using that initially, but it doesn't offers a way to set the detail text like we want. There is a `subtitle` property but it doesn't has correct padding we need for the `title`. Plus, we'd like to set an `NSAttributedString` to highlight the "Send feedback" text. But `subtitle` is of type `NSString`.

Let me know if you are referring to some other class. Because I was trying to use [TableViewCellContentConfiguration](https://source.chromium.org/chromium/chromium/src/+/main:ios/chrome/browser/shared/ui/table_view/cells/table_view_cell_content_configuration.h)

Gauthier Ambard

Ah, I haven't added support for attributed strings yet, true. Maybe I should do that. Can you use a string for now?

Chirag Arora

Then I cannot highlight the "Send feedback" text which should look like a link.

Chirag Arora

Done

Open in Gerrit

Related details

Attention is currently required from:
  • Fiona Macintosh
  • Gauthier Ambard
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: I11910c3f8c9499e36c383ab246bb6f03c0702235
Gerrit-Change-Number: 6983503
Gerrit-PatchSet: 7
Gerrit-Owner: Chirag Arora <heyc...@google.com>
Gerrit-Reviewer: Fiona Macintosh <fmaci...@google.com>
Gerrit-Reviewer: Gauthier Ambard <gam...@chromium.org>
Gerrit-CC: Permissions Reviews <permissio...@chromium.org>
Gerrit-Attention: Fiona Macintosh <fmaci...@google.com>
Gerrit-Attention: Gauthier Ambard <gam...@chromium.org>
Gerrit-Comment-Date: Thu, 25 Sep 2025 17:36:59 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Fiona Macintosh <fmaci...@google.com>
satisfied_requirement
unsatisfied_requirement
open
diffy

Gauthier Ambard (Gerrit)

unread,
Sep 26, 2025, 3:53:18 AM (2 days ago) Sep 26
to Chirag Arora, Fiona Macintosh, AyeAye, chromium...@chromium.org, Permissions Reviews, feature-me...@chromium.org, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org
Attention needed from Chirag Arora and Fiona Macintosh

Gauthier Ambard voted Code-Review+1

Code-Review+1
Open in Gerrit

Related details

Attention is currently required from:
  • Chirag Arora
  • Fiona Macintosh
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: I11910c3f8c9499e36c383ab246bb6f03c0702235
Gerrit-Change-Number: 6983503
Gerrit-PatchSet: 8
Gerrit-Owner: Chirag Arora <heyc...@google.com>
Gerrit-Reviewer: Fiona Macintosh <fmaci...@google.com>
Gerrit-Reviewer: Gauthier Ambard <gam...@chromium.org>
Gerrit-CC: Permissions Reviews <permissio...@chromium.org>
Gerrit-Attention: Fiona Macintosh <fmaci...@google.com>
Gerrit-Attention: Chirag Arora <heyc...@google.com>
Gerrit-Comment-Date: Fri, 26 Sep 2025 07:52:56 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Fiona Macintosh (Gerrit)

unread,
Sep 26, 2025, 9:10:36 AM (2 days ago) Sep 26
to Chirag Arora, Gauthier Ambard, AyeAye, chromium...@chromium.org, Permissions Reviews, feature-me...@chromium.org, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org
Attention needed from Chirag Arora

Fiona Macintosh added 15 comments

Commit Message
Line 9, Patchset 8 (Latest):This commit adds the frontend UI components for the TrackingProtectionSettings section on the SiteInfo sheet. The logic for dispatching initial state of the UI from the model has also been added.
Fiona Macintosh . unresolved

nit: this line is over the limit, please split onto multiple lines

Line 10, Patchset 8 (Latest):
Fiona Macintosh . unresolved

Please add a screenshot of your local build along with the mock (ex: crrev.com/c/6972505)

File components/privacy_sandbox_strings.grd
Line 403, Patchset 8 (Latest): <message name="IDS_IOS_PAGE_INFO_TRACKING_PROTECTIONS_SECTION_FOOTER" translateable="false" desc="Footer text shown below the Tracking Protection section of the 'Site Info' sheet. Provides a quick link to the Tracking Protection Settings page by highlighting the 'Settings' part of the text.">
Fiona Macintosh . unresolved
```suggestion
<message name="IDS_IOS_PAGE_INFO_TRACKING_PROTECTIONS_SECTION_FOOTER" translateable="false" desc="Footer text shown below the tracking protections section of the 'Site Info' sheet. Provides a link to the tracking protections settings page.">
```
Remember that "Tracking Protection" is a separate concept, using it in these string descriptions may confuse translators. In general, the purpose of these strings is to help translators, so to ensure consistent translations we should be consistent with our language in these descriptions. The string descriptions you've added have variance in terms of capitalization and pluralization, and we want to avoid this to ensure the translated strings are consistent and accurate
Line 409, Patchset 8 (Latest): <message name="IDS_IOS_PAGE_INFO_TRACKING_PROTECTIONS_PAUSED_DETAIL_TEXT_SEND_FEEDBACK" translateable="false" desc="Part of the descriptive text on the 'Site Info' sheet shown when tracking protections are paused on the current site. This is part of the feedback link so the user can give feedback as to why they paused tracking protections on this site.">
Fiona Macintosh . unresolved
```suggestion
<message name="IDS_IOS_PAGE_INFO_TRACKING_PROTECTIONS_PAUSED_DETAIL_TEXT_SEND_FEEDBACK" translateable="false" desc="A send feedback link that appears as part of the descriptive text on the 'Site Info' sheet when tracking protections are paused on the current site. Allows the user to give feedback on why they paused tracking protections on this site.">
```
Line 412, Patchset 8 (Latest): <message name="IDS_IOS_PAGE_INFO_TRACKING_PROTECTIONS_RESUMED" translateable="false" desc="Title of tracking protection section when tracking protection is enabled for the current site.">
Fiona Macintosh . unresolved
```suggestion
<message name="IDS_IOS_PAGE_INFO_TRACKING_PROTECTIONS_RESUMED" translateable="false" desc="">
```
nit: would just leave this as false for now, this is a tricky string to come up with a good description for and we can fill it out later when we mark the strings for translation
File ios/chrome/browser/page_info/tracking_protection/coordinator/page_info_tracking_protection_mediator.mm
Line 63, Patchset 8 (Latest): const GURL& URL = [self currentURL];

return _trackingProtectionSettings->HasTrackingProtectionException(URL);
Fiona Macintosh . unresolved
```suggestion
return _trackingProtectionSettings->HasTrackingProtectionException([self currentURL]);
```
nit: don't think you need the local variable here (go/totw/161)
Line 71, Patchset 8 (Latest): // TODO: implement the toggling logic here.
Fiona Macintosh . unresolved
nit: TODOs should always have a bug attached
```suggestion
// TODO(crbug.com/442799468): Implement toggling logic.
```
File ios/chrome/browser/page_info/tracking_protection/ui/page_info_tracking_protection_info.mm
Line 7, Patchset 8 (Latest):@implementation PageInfoTrackingProtectionInfo

@end
Fiona Macintosh . unresolved

Add a TODO to fill this out?

File ios/chrome/browser/page_info/ui_bundled/page_info_coordinator.mm
Line 70, Patchset 8 (Latest): // Coordinator for tracking protection settings.
Fiona Macintosh . unresolved

Mediator?

File ios/chrome/browser/page_info/ui_bundled/page_info_view_controller.mm
Line 76, Patchset 8 (Latest):// URL to identify where the request is coming from to the delegate.
Fiona Macintosh . unresolved

This comment doesn't line up with the usage IIUC, isn't this URL for the link in the tracking protections footer?

Line 78, Patchset 8 (Latest): "settings://open_tracking_protection_settings";
Fiona Macintosh . unresolved

OOC does this URL work or is it a placeholder?

Line 254, Patchset 8 (Latest): case ItemIdentifierTrackingProtection: {
// TODO: implement tap functionality for the info cell.
break;
}
case ItemIdentifierTrackingProtectionButton: {
// TODO: implement tap functionality for the button cell.
break;
}
Fiona Macintosh . unresolved

Same as in other file, attach these TODOs to your bug

Line 291, Patchset 8 (Latest): TableViewLinkHeaderFooterView* footer =
DequeueTableViewHeaderFooter<TableViewLinkHeaderFooterView>(
self.tableView);

footer.delegate = self;
footer.urls = @[ [[CrURL alloc]
initWithGURL:GURL(kTrackingProtectionSettingsURL)] ];
[footer setText:l10n_util::GetNSString(
IDS_IOS_PAGE_INFO_TRACKING_PROTECTIONS_SECTION_FOOTER)
withColor:[UIColor colorNamed:kTextSecondaryColor]];

return footer;
Fiona Macintosh . unresolved
```suggestion
TableViewLinkHeaderFooterView* footer =
DequeueTableViewHeaderFooter<TableViewLinkHeaderFooterView>(
self.tableView);
footer.delegate = self;
footer.urls = @[ [[CrURL alloc]
initWithGURL:GURL(kTrackingProtectionSettingsURL)] ];
[footer setText:l10n_util::GetNSString(
IDS_IOS_PAGE_INFO_TRACKING_PROTECTIONS_SECTION_FOOTER)
withColor:[UIColor colorNamed:kTextSecondaryColor]];
return footer;
```
nit: avoid unnecessary vertical whitespace (go/cstyle#Vertical_Whitespace)
Line 322, Patchset 8 (Latest): // TODO: Add logic to open the Settings page.
Fiona Macintosh . unresolved

Same as elsewhere, attach this to a bug

Line 505, Patchset 3: NSMutableAttributedString* detailText = [[NSMutableAttributedString
alloc]
initWithString:
l10n_util::GetNSString(
IDS_IOS_PAGE_INFO_TRACKING_PROTECTIONS_PAUSED_DETAIL_TEXT)];
NSAttributedString* sendFeedbackText = [[NSAttributedString alloc]
initWithString:
l10n_util::GetNSString(
IDS_IOS_PAGE_INFO_TRACKING_PROTECTIONS_PAUSED_DETAIL_TEXT_SEND_FEEDBACK)
attributes:@{
NSForegroundColorAttributeName :
[UIColor colorNamed:kBlueColor],
}];

[detailText appendAttributedString:[[NSAttributedString alloc]
initWithString:kSpaceDelimiter]];
[detailText appendAttributedString:sendFeedbackText];
Gauthier Ambard . unresolved

I am not sure this works for all languages. Could you make it a unique string for translation?

Chirag Arora

"Send feedback" is actually not part of the sentence. It's after the full-stop and I think should be treated like a separate string.

Chirag Arora

Done

Fiona Macintosh

This works from a translation perspective, but why can't it be part of the `detailText` string like the [android string](https://source.chromium.org/chromium/chromium/src/+/main:components/privacy_sandbox_strings.grd;l=416;drc=1a2142329abc0be6b6c3590be11764858bf4ae54)?

Open in Gerrit

Related details

Attention is currently required from:
  • Chirag Arora
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: I11910c3f8c9499e36c383ab246bb6f03c0702235
Gerrit-Change-Number: 6983503
Gerrit-PatchSet: 8
Gerrit-Owner: Chirag Arora <heyc...@google.com>
Gerrit-Reviewer: Fiona Macintosh <fmaci...@google.com>
Gerrit-Reviewer: Gauthier Ambard <gam...@chromium.org>
Gerrit-CC: Permissions Reviews <permissio...@chromium.org>
Gerrit-Attention: Chirag Arora <heyc...@google.com>
Gerrit-Comment-Date: Fri, 26 Sep 2025 13:10:28 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Chirag Arora (Gerrit)

unread,
Sep 26, 2025, 9:59:59 AM (2 days ago) Sep 26
to Gauthier Ambard, Fiona Macintosh, AyeAye, chromium...@chromium.org, Permissions Reviews, feature-me...@chromium.org, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org
Attention needed from Fiona Macintosh and Gauthier Ambard

Chirag Arora added 4 comments

File ios/chrome/browser/page_info/tracking_protection/ui/page_info_tracking_protection_info.mm
Line 7, Patchset 8 (Latest):@implementation PageInfoTrackingProtectionInfo

@end
Fiona Macintosh . unresolved

Add a TODO to fill this out?

File ios/chrome/browser/page_info/ui_bundled/page_info_view_controller.mm
Line 76, Patchset 8 (Latest):// URL to identify where the request is coming from to the delegate.
Fiona Macintosh . unresolved

This comment doesn't line up with the usage IIUC, isn't this URL for the link in the tracking protections footer?

Chirag Arora

It's not really a URL in itself, just an identifier as I understand from other places in the codebase. Since the handler is common for all links, the identifier helps in triggering the correct code to open the page we want.

Example: https://source.chromium.org/search?q=%22settings:%2F%2F%22&sq=

Line 78, Patchset 8 (Latest): "settings://open_tracking_protection_settings";
Fiona Macintosh . unresolved

OOC does this URL work or is it a placeholder?

Chirag Arora

Just an identifier. Check lines 321-323.

Line 505, Patchset 3: NSMutableAttributedString* detailText = [[NSMutableAttributedString
alloc]
initWithString:
l10n_util::GetNSString(
IDS_IOS_PAGE_INFO_TRACKING_PROTECTIONS_PAUSED_DETAIL_TEXT)];
NSAttributedString* sendFeedbackText = [[NSAttributedString alloc]
initWithString:
l10n_util::GetNSString(
IDS_IOS_PAGE_INFO_TRACKING_PROTECTIONS_PAUSED_DETAIL_TEXT_SEND_FEEDBACK)
attributes:@{
NSForegroundColorAttributeName :
[UIColor colorNamed:kBlueColor],
}];

[detailText appendAttributedString:[[NSAttributedString alloc]
initWithString:kSpaceDelimiter]];
[detailText appendAttributedString:sendFeedbackText];
Gauthier Ambard . unresolved

I am not sure this works for all languages. Could you make it a unique string for translation?

Chirag Arora

"Send feedback" is actually not part of the sentence. It's after the full-stop and I think should be treated like a separate string.

Chirag Arora

Done

Fiona Macintosh

This works from a translation perspective, but why can't it be part of the `detailText` string like the [android string](https://source.chromium.org/chromium/chromium/src/+/main:components/privacy_sandbox_strings.grd;l=416;drc=1a2142329abc0be6b6c3590be11764858bf4ae54)?

Chirag Arora

It's because we don't have specific class properties to handle the templated links in strings for `detailText`. Recall links aren't supported directly here and we need to make the entire cell a touch target. For the Settings link in the footer, it's all a single string because that use-case is supported natively.

Open in Gerrit

Related details

Attention is currently required from:
  • Fiona Macintosh
  • Gauthier Ambard
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: I11910c3f8c9499e36c383ab246bb6f03c0702235
Gerrit-Change-Number: 6983503
Gerrit-PatchSet: 8
Gerrit-Owner: Chirag Arora <heyc...@google.com>
Gerrit-Reviewer: Fiona Macintosh <fmaci...@google.com>
Gerrit-Reviewer: Gauthier Ambard <gam...@chromium.org>
Gerrit-CC: Permissions Reviews <permissio...@chromium.org>
Gerrit-Attention: Fiona Macintosh <fmaci...@google.com>
Gerrit-Attention: Gauthier Ambard <gam...@chromium.org>
Gerrit-Comment-Date: Fri, 26 Sep 2025 13:59:50 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Fiona Macintosh <fmaci...@google.com>
satisfied_requirement
unsatisfied_requirement
open
diffy

Fiona Macintosh (Gerrit)

unread,
Sep 26, 2025, 10:07:27 AM (2 days ago) Sep 26
to Chirag Arora, Gauthier Ambard, AyeAye, chromium...@chromium.org, Permissions Reviews, feature-me...@chromium.org, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org
Attention needed from Chirag Arora and Gauthier Ambard

Fiona Macintosh added 4 comments

File ios/chrome/browser/page_info/tracking_protection/ui/page_info_tracking_protection_info.mm
Line 7, Patchset 8 (Latest):@implementation PageInfoTrackingProtectionInfo

@end
Fiona Macintosh . resolved

Add a TODO to fill this out?

Chirag Arora

Actually, it will remain like this.

Example: https://source.chromium.org/chromium/chromium/src/+/main:ios/chrome/browser/permissions/ui_bundled/permission_info.mm

Fiona Macintosh

Gotcha, thanks!

File ios/chrome/browser/page_info/ui_bundled/page_info_view_controller.mm
Line 76, Patchset 8 (Latest):// URL to identify where the request is coming from to the delegate.
Fiona Macintosh . unresolved

This comment doesn't line up with the usage IIUC, isn't this URL for the link in the tracking protections footer?

Chirag Arora

It's not really a URL in itself, just an identifier as I understand from other places in the codebase. Since the handler is common for all links, the identifier helps in triggering the correct code to open the page we want.

Example: https://source.chromium.org/search?q=%22settings:%2F%2F%22&sq=

Fiona Macintosh

```suggestion
// Used as an identifier to open the tracking protection settings page.
```
Got it, then I would update the comment to something like this

Line 78, Patchset 8 (Latest): "settings://open_tracking_protection_settings";
Fiona Macintosh . resolved

OOC does this URL work or is it a placeholder?

Chirag Arora

Just an identifier. Check lines 321-323.

Fiona Macintosh

Resolved via other comment

Fiona Macintosh

Yeah I understand we can't support a link on the text directly, but I'm not sure how that connects to us needing a separate string for the "send feedback" text; as you say, the whole cell is going to be the touch target anyway. IIUC we can just have one string and then only provide the color formatting to the range of the "send feedback" text

Open in Gerrit

Related details

Attention is currently required from:
  • Chirag Arora
  • Gauthier Ambard
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: I11910c3f8c9499e36c383ab246bb6f03c0702235
Gerrit-Change-Number: 6983503
Gerrit-PatchSet: 8
Gerrit-Owner: Chirag Arora <heyc...@google.com>
Gerrit-Reviewer: Fiona Macintosh <fmaci...@google.com>
Gerrit-Reviewer: Gauthier Ambard <gam...@chromium.org>
Gerrit-CC: Permissions Reviews <permissio...@chromium.org>
Gerrit-Attention: Chirag Arora <heyc...@google.com>
Gerrit-Attention: Gauthier Ambard <gam...@chromium.org>
Gerrit-Comment-Date: Fri, 26 Sep 2025 14:07:20 +0000
satisfied_requirement
unsatisfied_requirement
open
diffy

Chirag Arora (Gerrit)

unread,
Sep 26, 2025, 10:13:27 AM (2 days ago) Sep 26
to Gauthier Ambard, Fiona Macintosh, AyeAye, chromium...@chromium.org, Permissions Reviews, feature-me...@chromium.org, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org
Attention needed from Fiona Macintosh and Gauthier Ambard

Chirag Arora added 1 comment

File ios/chrome/browser/page_info/ui_bundled/page_info_view_controller.mm
Chirag Arora

Yes, but to get the range of "Send feedback" text, we'll need to have it stored separately as a string anyway since, this is not static and will change for different locales.

Open in Gerrit

Related details

Attention is currently required from:
  • Fiona Macintosh
  • Gauthier Ambard
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: I11910c3f8c9499e36c383ab246bb6f03c0702235
Gerrit-Change-Number: 6983503
Gerrit-PatchSet: 8
Gerrit-Owner: Chirag Arora <heyc...@google.com>
Gerrit-Reviewer: Fiona Macintosh <fmaci...@google.com>
Gerrit-Reviewer: Gauthier Ambard <gam...@chromium.org>
Gerrit-CC: Permissions Reviews <permissio...@chromium.org>
Gerrit-Attention: Fiona Macintosh <fmaci...@google.com>
Gerrit-Attention: Gauthier Ambard <gam...@chromium.org>
Gerrit-Comment-Date: Fri, 26 Sep 2025 14:13:18 +0000
satisfied_requirement
unsatisfied_requirement
open
diffy

Fiona Macintosh (Gerrit)

unread,
Sep 26, 2025, 10:16:14 AM (2 days ago) Sep 26
to Chirag Arora, Gauthier Ambard, AyeAye, chromium...@chromium.org, Permissions Reviews, feature-me...@chromium.org, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org
Attention needed from Chirag Arora and Gauthier Ambard

Fiona Macintosh added 1 comment

File ios/chrome/browser/page_info/ui_bundled/page_info_view_controller.mm
Fiona Macintosh

Yes, it's not static, which is why we have the `BEGIN_LINK` and `END_LINK` tags and [this function](https://source.chromium.org/chromium/chromium/src/+/main:ios/chrome/common/string_util.h;l=49-52;drc=05d8a25b5b0b09734619068a7247c4c4f3db732c) to retrieve the range. I understand that the whole cell will end up being a link, but for the purposes of applying styling to the string - and for the sake of translations - making it one string with these tags is the right approach

Open in Gerrit

Related details

Attention is currently required from:
  • Chirag Arora
  • Gauthier Ambard
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: I11910c3f8c9499e36c383ab246bb6f03c0702235
Gerrit-Change-Number: 6983503
Gerrit-PatchSet: 8
Gerrit-Owner: Chirag Arora <heyc...@google.com>
Gerrit-Reviewer: Fiona Macintosh <fmaci...@google.com>
Gerrit-Reviewer: Gauthier Ambard <gam...@chromium.org>
Gerrit-CC: Permissions Reviews <permissio...@chromium.org>
Gerrit-Attention: Chirag Arora <heyc...@google.com>
Gerrit-Attention: Gauthier Ambard <gam...@chromium.org>
Gerrit-Comment-Date: Fri, 26 Sep 2025 14:16:05 +0000
satisfied_requirement
unsatisfied_requirement
open
diffy

Chirag Arora (Gerrit)

unread,
Sep 26, 2025, 10:18:06 AM (2 days ago) Sep 26
to Gauthier Ambard, Fiona Macintosh, AyeAye, chromium...@chromium.org, Permissions Reviews, feature-me...@chromium.org, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org
Attention needed from Chirag Arora

Chirag Arora added 1 comment

File ios/chrome/browser/page_info/tracking_protection/coordinator/page_info_tracking_protection_mediator.mm
Line 63, Patchset 8 (Latest): const GURL& URL = [self currentURL];

return _trackingProtectionSettings->HasTrackingProtectionException(URL);
Fiona Macintosh . unresolved
```suggestion
return _trackingProtectionSettings->HasTrackingProtectionException([self currentURL]);
```
nit: don't think you need the local variable here (go/totw/161)
Chirag Arora

Will add it in the next CL along with the toggling logic.

Open in Gerrit

Related details

Attention is currently required from:
  • Chirag Arora
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: I11910c3f8c9499e36c383ab246bb6f03c0702235
Gerrit-Change-Number: 6983503
Gerrit-PatchSet: 8
Gerrit-Owner: Chirag Arora <heyc...@google.com>
Gerrit-Reviewer: Fiona Macintosh <fmaci...@google.com>
Gerrit-Reviewer: Gauthier Ambard <gam...@chromium.org>
Gerrit-CC: Permissions Reviews <permissio...@chromium.org>
Gerrit-Attention: Chirag Arora <heyc...@google.com>
Gerrit-Comment-Date: Fri, 26 Sep 2025 14:17:59 +0000
satisfied_requirement
unsatisfied_requirement
open
diffy

Chirag Arora (Gerrit)

unread,
Sep 26, 2025, 10:58:51 AM (2 days ago) Sep 26
to Gauthier Ambard, Fiona Macintosh, AyeAye, chromium...@chromium.org, Permissions Reviews, feature-me...@chromium.org, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org
Attention needed from Fiona Macintosh

Chirag Arora added 1 comment

File ios/chrome/browser/page_info/tracking_protection/coordinator/page_info_tracking_protection_mediator.mm
Line 63, Patchset 8 (Latest): const GURL& URL = [self currentURL];

return _trackingProtectionSettings->HasTrackingProtectionException(URL);
Fiona Macintosh . unresolved
```suggestion
return _trackingProtectionSettings->HasTrackingProtectionException([self currentURL]);
```
nit: don't think you need the local variable here (go/totw/161)
Chirag Arora

Will add it in the next CL along with the toggling logic.

Chirag Arora

Sorry, ignore this.

Open in Gerrit

Related details

Attention is currently required from:
  • Fiona Macintosh
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: I11910c3f8c9499e36c383ab246bb6f03c0702235
Gerrit-Change-Number: 6983503
Gerrit-PatchSet: 8
Gerrit-Owner: Chirag Arora <heyc...@google.com>
Gerrit-Reviewer: Fiona Macintosh <fmaci...@google.com>
Gerrit-Reviewer: Gauthier Ambard <gam...@chromium.org>
Gerrit-CC: Permissions Reviews <permissio...@chromium.org>
Gerrit-Attention: Fiona Macintosh <fmaci...@google.com>
Gerrit-Comment-Date: Fri, 26 Sep 2025 14:58:29 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Fiona Macintosh <fmaci...@google.com>
Comment-In-Reply-To: Chirag Arora <heyc...@google.com>
satisfied_requirement
unsatisfied_requirement
open
diffy

Chirag Arora (Gerrit)

unread,
Sep 26, 2025, 11:40:07 AM (2 days ago) Sep 26
to Gauthier Ambard, Fiona Macintosh, AyeAye, chromium...@chromium.org, Permissions Reviews, feature-me...@chromium.org, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org
Attention needed from Fiona Macintosh and Gauthier Ambard

Chirag Arora added 13 comments

Commit Message
Line 9, Patchset 8:This commit adds the frontend UI components for the TrackingProtectionSettings section on the SiteInfo sheet. The logic for dispatching initial state of the UI from the model has also been added.
Fiona Macintosh . resolved

nit: this line is over the limit, please split onto multiple lines

Chirag Arora

Done

Line 10, Patchset 8:
Fiona Macintosh . resolved

Please add a screenshot of your local build along with the mock (ex: crrev.com/c/6972505)

Chirag Arora

Done

File components/privacy_sandbox_strings.grd
Line 403, Patchset 8: <message name="IDS_IOS_PAGE_INFO_TRACKING_PROTECTIONS_SECTION_FOOTER" translateable="false" desc="Footer text shown below the Tracking Protection section of the 'Site Info' sheet. Provides a quick link to the Tracking Protection Settings page by highlighting the 'Settings' part of the text.">
Fiona Macintosh . resolved
```suggestion
<message name="IDS_IOS_PAGE_INFO_TRACKING_PROTECTIONS_SECTION_FOOTER" translateable="false" desc="Footer text shown below the tracking protections section of the 'Site Info' sheet. Provides a link to the tracking protections settings page.">
```
Remember that "Tracking Protection" is a separate concept, using it in these string descriptions may confuse translators. In general, the purpose of these strings is to help translators, so to ensure consistent translations we should be consistent with our language in these descriptions. The string descriptions you've added have variance in terms of capitalization and pluralization, and we want to avoid this to ensure the translated strings are consistent and accurate
Chirag Arora

Done

Line 409, Patchset 8: <message name="IDS_IOS_PAGE_INFO_TRACKING_PROTECTIONS_PAUSED_DETAIL_TEXT_SEND_FEEDBACK" translateable="false" desc="Part of the descriptive text on the 'Site Info' sheet shown when tracking protections are paused on the current site. This is part of the feedback link so the user can give feedback as to why they paused tracking protections on this site.">
Fiona Macintosh . resolved
```suggestion
<message name="IDS_IOS_PAGE_INFO_TRACKING_PROTECTIONS_PAUSED_DETAIL_TEXT_SEND_FEEDBACK" translateable="false" desc="A send feedback link that appears as part of the descriptive text on the 'Site Info' sheet when tracking protections are paused on the current site. Allows the user to give feedback on why they paused tracking protections on this site.">
```
Chirag Arora

Done

Line 412, Patchset 8: <message name="IDS_IOS_PAGE_INFO_TRACKING_PROTECTIONS_RESUMED" translateable="false" desc="Title of tracking protection section when tracking protection is enabled for the current site.">
Fiona Macintosh . resolved
```suggestion
<message name="IDS_IOS_PAGE_INFO_TRACKING_PROTECTIONS_RESUMED" translateable="false" desc="">
```
nit: would just leave this as false for now, this is a tricky string to come up with a good description for and we can fill it out later when we mark the strings for translation
Chirag Arora

Done

File ios/chrome/browser/page_info/tracking_protection/coordinator/page_info_tracking_protection_mediator.mm
Line 63, Patchset 8: const GURL& URL = [self currentURL];

return _trackingProtectionSettings->HasTrackingProtectionException(URL);
Fiona Macintosh . resolved
```suggestion
return _trackingProtectionSettings->HasTrackingProtectionException([self currentURL]);
```
nit: don't think you need the local variable here (go/totw/161)
Chirag Arora

Will add it in the next CL along with the toggling logic.

Chirag Arora

Sorry, ignore this.

Chirag Arora

Done

Line 71, Patchset 8: // TODO: implement the toggling logic here.
Fiona Macintosh . resolved
nit: TODOs should always have a bug attached
```suggestion
// TODO(crbug.com/442799468): Implement toggling logic.
```
Chirag Arora

Done

File ios/chrome/browser/page_info/ui_bundled/page_info_coordinator.mm
Line 70, Patchset 8: // Coordinator for tracking protection settings.
Fiona Macintosh . resolved

Mediator?

Chirag Arora

Done

File ios/chrome/browser/page_info/ui_bundled/page_info_view_controller.mm
Line 76, Patchset 8:// URL to identify where the request is coming from to the delegate.
Fiona Macintosh . resolved

This comment doesn't line up with the usage IIUC, isn't this URL for the link in the tracking protections footer?

Chirag Arora

It's not really a URL in itself, just an identifier as I understand from other places in the codebase. Since the handler is common for all links, the identifier helps in triggering the correct code to open the page we want.

Example: https://source.chromium.org/search?q=%22settings:%2F%2F%22&sq=

Fiona Macintosh

```suggestion
// Used as an identifier to open the tracking protection settings page.
```
Got it, then I would update the comment to something like this

Chirag Arora

Done

Line 254, Patchset 8: case ItemIdentifierTrackingProtection: {

// TODO: implement tap functionality for the info cell.
break;
}
case ItemIdentifierTrackingProtectionButton: {
// TODO: implement tap functionality for the button cell.
break;
}
Fiona Macintosh . resolved

Same as in other file, attach these TODOs to your bug

Chirag Arora

Done

Line 291, Patchset 8: TableViewLinkHeaderFooterView* footer =

DequeueTableViewHeaderFooter<TableViewLinkHeaderFooterView>(
self.tableView);

footer.delegate = self;
footer.urls = @[ [[CrURL alloc]
initWithGURL:GURL(kTrackingProtectionSettingsURL)] ];
[footer setText:l10n_util::GetNSString(
IDS_IOS_PAGE_INFO_TRACKING_PROTECTIONS_SECTION_FOOTER)
withColor:[UIColor colorNamed:kTextSecondaryColor]];

return footer;
Fiona Macintosh . resolved
```suggestion
TableViewLinkHeaderFooterView* footer =
DequeueTableViewHeaderFooter<TableViewLinkHeaderFooterView>(
self.tableView);
footer.delegate = self;
footer.urls = @[ [[CrURL alloc]
initWithGURL:GURL(kTrackingProtectionSettingsURL)] ];
[footer setText:l10n_util::GetNSString(
IDS_IOS_PAGE_INFO_TRACKING_PROTECTIONS_SECTION_FOOTER)
withColor:[UIColor colorNamed:kTextSecondaryColor]];
return footer;
```
nit: avoid unnecessary vertical whitespace (go/cstyle#Vertical_Whitespace)
Chirag Arora

Done

Line 322, Patchset 8: // TODO: Add logic to open the Settings page.
Fiona Macintosh . resolved

Same as elsewhere, attach this to a bug

Chirag Arora

Done

Line 505, Patchset 3: NSMutableAttributedString* detailText = [[NSMutableAttributedString
alloc]
initWithString:
l10n_util::GetNSString(
IDS_IOS_PAGE_INFO_TRACKING_PROTECTIONS_PAUSED_DETAIL_TEXT)];
NSAttributedString* sendFeedbackText = [[NSAttributedString alloc]
initWithString:
l10n_util::GetNSString(
IDS_IOS_PAGE_INFO_TRACKING_PROTECTIONS_PAUSED_DETAIL_TEXT_SEND_FEEDBACK)
attributes:@{
NSForegroundColorAttributeName :
[UIColor colorNamed:kBlueColor],
}];

[detailText appendAttributedString:[[NSAttributedString alloc]
initWithString:kSpaceDelimiter]];
[detailText appendAttributedString:sendFeedbackText];
Gauthier Ambard . resolved

I am not sure this works for all languages. Could you make it a unique string for translation?

Chirag Arora

"Send feedback" is actually not part of the sentence. It's after the full-stop and I think should be treated like a separate string.

Chirag Arora

Done

Fiona Macintosh

This works from a translation perspective, but why can't it be part of the `detailText` string like the [android string](https://source.chromium.org/chromium/chromium/src/+/main:components/privacy_sandbox_strings.grd;l=416;drc=1a2142329abc0be6b6c3590be11764858bf4ae54)?

Chirag Arora

It's because we don't have specific class properties to handle the templated links in strings for `detailText`. Recall links aren't supported directly here and we need to make the entire cell a touch target. For the Settings link in the footer, it's all a single string because that use-case is supported natively.

Fiona Macintosh

Yeah I understand we can't support a link on the text directly, but I'm not sure how that connects to us needing a separate string for the "send feedback" text; as you say, the whole cell is going to be the touch target anyway. IIUC we can just have one string and then only provide the color formatting to the range of the "send feedback" text

Chirag Arora

Yes, but to get the range of "Send feedback" text, we'll need to have it stored separately as a string anyway since, this is not static and will change for different locales.

Fiona Macintosh

Yes, it's not static, which is why we have the `BEGIN_LINK` and `END_LINK` tags and [this function](https://source.chromium.org/chromium/chromium/src/+/main:ios/chrome/common/string_util.h;l=49-52;drc=05d8a25b5b0b09734619068a7247c4c4f3db732c) to retrieve the range. I understand that the whole cell will end up being a link, but for the purposes of applying styling to the string - and for the sake of translations - making it one string with these tags is the right approach

Chirag Arora

Done

Open in Gerrit

Related details

Attention is currently required from:
  • Fiona Macintosh
  • Gauthier Ambard
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: I11910c3f8c9499e36c383ab246bb6f03c0702235
Gerrit-Change-Number: 6983503
Gerrit-PatchSet: 10
Gerrit-Owner: Chirag Arora <heyc...@google.com>
Gerrit-Reviewer: Fiona Macintosh <fmaci...@google.com>
Gerrit-Reviewer: Gauthier Ambard <gam...@chromium.org>
Gerrit-CC: Permissions Reviews <permissio...@chromium.org>
Gerrit-Attention: Fiona Macintosh <fmaci...@google.com>
Gerrit-Attention: Gauthier Ambard <gam...@chromium.org>
Gerrit-Comment-Date: Fri, 26 Sep 2025 15:40:02 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Fiona Macintosh <fmaci...@google.com>
Comment-In-Reply-To: Chirag Arora <heyc...@google.com>
Comment-In-Reply-To: Gauthier Ambard <gam...@chromium.org>
satisfied_requirement
unsatisfied_requirement
open
diffy

Fiona Macintosh (Gerrit)

unread,
Sep 26, 2025, 11:52:08 AM (2 days ago) Sep 26
to Chirag Arora, Gauthier Ambard, AyeAye, chromium...@chromium.org, Permissions Reviews, feature-me...@chromium.org, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org
Attention needed from Chirag Arora and Gauthier Ambard

Fiona Macintosh voted and added 5 comments

Votes added by Fiona Macintosh

Code-Review+1

5 comments

Patchset-level comments
File-level comment, Patchset 10:
Fiona Macintosh . resolved

Thanks for the updates, LGTM!

File ios/chrome/browser/page_info/tracking_protection/coordinator/page_info_tracking_protection_mediator.mm
Line 61, Patchset 10:// Determines if the model currently has an exception for the current site.
Fiona Macintosh . unresolved

```suggestion
// Determines if there is an exception for the current site.
```

File ios/chrome/browser/page_info/ui_bundled/page_info_view_controller.mm
Line 494, Patchset 10: TableViewDetailIconCell* cell =
DequeueTableViewCell<TableViewDetailIconCell>(tableView);

cell.accessoryType = UITableViewCellAccessoryNone;
Fiona Macintosh . unresolved
```suggestion
TableViewDetailIconCell* cell =
DequeueTableViewCell<TableViewDetailIconCell>(tableView);
cell.accessoryType = UITableViewCellAccessoryNone;
```
Line 512, Patchset 10: DCHECK_EQ(parsedDetailText.ranges.size(), 1UL);
Fiona Macintosh . unresolved

IIUC DCHECK is deprecated, let's just use CHECK instead

Line 539, Patchset 10: TableViewCellContentConfiguration* configuration =
[[TableViewCellContentConfiguration alloc] init];

if (_trackingProtectionInfo.hasTrackingProtectionException) {
configuration.title = l10n_util::GetNSString(
IDS_TRACKING_PROTECTIONS_BUTTON_RESUME_PROTECTIONS_LABEL);
} else {
configuration.title = l10n_util::GetNSString(
IDS_TRACKING_PROTECTIONS_BUTTON_PAUSE_PROTECTIONS_LABEL);
}
configuration.titleColor = [UIColor colorNamed:kBlueColor];

TableViewCell* cell =
[TableViewCellContentConfiguration dequeueTableViewCell:tableView];
cell.contentConfiguration = configuration;

return cell;
Fiona Macintosh . unresolved
```suggestion
TableViewCellContentConfiguration* configuration =
[[TableViewCellContentConfiguration alloc] init];
if (_trackingProtectionInfo.hasTrackingProtectionException) {
configuration.title = l10n_util::GetNSString(
IDS_TRACKING_PROTECTIONS_BUTTON_RESUME_PROTECTIONS_LABEL);
} else {
configuration.title = l10n_util::GetNSString(
IDS_TRACKING_PROTECTIONS_BUTTON_PAUSE_PROTECTIONS_LABEL);
}
configuration.titleColor = [UIColor colorNamed:kBlueColor];
      TableViewCell* cell =
[TableViewCellContentConfiguration dequeueTableViewCell:tableView];
cell.contentConfiguration = configuration;
return cell;
```
nit: reducing more unneeded blank lines
Open in Gerrit

Related details

Attention is currently required from:
  • Chirag Arora
  • Gauthier Ambard
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement 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: I11910c3f8c9499e36c383ab246bb6f03c0702235
Gerrit-Change-Number: 6983503
Gerrit-PatchSet: 12
Gerrit-Owner: Chirag Arora <heyc...@google.com>
Gerrit-Reviewer: Fiona Macintosh <fmaci...@google.com>
Gerrit-Reviewer: Gauthier Ambard <gam...@chromium.org>
Gerrit-CC: Permissions Reviews <permissio...@chromium.org>
Gerrit-Attention: Chirag Arora <heyc...@google.com>
Gerrit-Attention: Gauthier Ambard <gam...@chromium.org>
Gerrit-Comment-Date: Fri, 26 Sep 2025 15:52:00 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Chirag Arora (Gerrit)

unread,
Sep 26, 2025, 12:07:57 PM (2 days ago) Sep 26
to Fiona Macintosh, Gauthier Ambard, AyeAye, chromium...@chromium.org, Permissions Reviews, feature-me...@chromium.org, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org
Attention needed from Fiona Macintosh and Gauthier Ambard

Chirag Arora added 3 comments

File ios/chrome/browser/page_info/tracking_protection/coordinator/page_info_tracking_protection_mediator.mm
Line 61, Patchset 10:// Determines if the model currently has an exception for the current site.
Fiona Macintosh . unresolved

```suggestion
// Determines if there is an exception for the current site.
```

Chirag Arora

Fix applied.

File ios/chrome/browser/page_info/ui_bundled/page_info_view_controller.mm
Line 494, Patchset 10: TableViewDetailIconCell* cell =
DequeueTableViewCell<TableViewDetailIconCell>(tableView);

cell.accessoryType = UITableViewCellAccessoryNone;
Fiona Macintosh . unresolved
```suggestion
TableViewDetailIconCell* cell =
DequeueTableViewCell<TableViewDetailIconCell>(tableView);
cell.accessoryType = UITableViewCellAccessoryNone;
```
Chirag Arora

Fix applied.

Chirag Arora

Fix applied.

Open in Gerrit

Related details

Attention is currently required from:
  • Fiona Macintosh
  • Gauthier Ambard
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement 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: I11910c3f8c9499e36c383ab246bb6f03c0702235
Gerrit-Change-Number: 6983503
Gerrit-PatchSet: 13
Gerrit-Owner: Chirag Arora <heyc...@google.com>
Gerrit-Reviewer: Fiona Macintosh <fmaci...@google.com>
Gerrit-Reviewer: Gauthier Ambard <gam...@chromium.org>
Gerrit-CC: Permissions Reviews <permissio...@chromium.org>
Gerrit-Attention: Fiona Macintosh <fmaci...@google.com>
Gerrit-Attention: Gauthier Ambard <gam...@chromium.org>
Gerrit-Comment-Date: Fri, 26 Sep 2025 16:07:38 +0000
satisfied_requirement
unsatisfied_requirement
open
diffy

Chirag Arora (Gerrit)

unread,
Sep 26, 2025, 12:19:03 PM (2 days ago) Sep 26
to Fiona Macintosh, Gauthier Ambard, AyeAye, chromium...@chromium.org, Permissions Reviews, feature-me...@chromium.org, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org
Attention needed from Fiona Macintosh and Gauthier Ambard

Chirag Arora added 1 comment

File ios/chrome/browser/page_info/ui_bundled/page_info_view_controller.mm
Line 512, Patchset 10: DCHECK_EQ(parsedDetailText.ranges.size(), 1UL);
Fiona Macintosh . resolved

IIUC DCHECK is deprecated, let's just use CHECK instead

Chirag Arora

Done

Open in Gerrit

Related details

Attention is currently required from:
  • Fiona Macintosh
  • Gauthier Ambard
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement 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: I11910c3f8c9499e36c383ab246bb6f03c0702235
Gerrit-Change-Number: 6983503
Gerrit-PatchSet: 14
Gerrit-Owner: Chirag Arora <heyc...@google.com>
Gerrit-Reviewer: Fiona Macintosh <fmaci...@google.com>
Gerrit-Reviewer: Gauthier Ambard <gam...@chromium.org>
Gerrit-CC: Permissions Reviews <permissio...@chromium.org>
Gerrit-Attention: Fiona Macintosh <fmaci...@google.com>
Gerrit-Attention: Gauthier Ambard <gam...@chromium.org>
Gerrit-Comment-Date: Fri, 26 Sep 2025 16:18:44 +0000
satisfied_requirement
unsatisfied_requirement
open
diffy

Fiona Macintosh (Gerrit)

unread,
Sep 26, 2025, 12:40:02 PM (2 days ago) Sep 26
to Chirag Arora, Gauthier Ambard, AyeAye, chromium...@chromium.org, Permissions Reviews, feature-me...@chromium.org, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org
Attention needed from Chirag Arora and Gauthier Ambard

Fiona Macintosh voted Code-Review+1

Code-Review+1
Open in Gerrit

Related details

Attention is currently required from:
  • Chirag Arora
  • Gauthier Ambard
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement 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: I11910c3f8c9499e36c383ab246bb6f03c0702235
Gerrit-Change-Number: 6983503
Gerrit-PatchSet: 14
Gerrit-Owner: Chirag Arora <heyc...@google.com>
Gerrit-Reviewer: Fiona Macintosh <fmaci...@google.com>
Gerrit-Reviewer: Gauthier Ambard <gam...@chromium.org>
Gerrit-CC: Permissions Reviews <permissio...@chromium.org>
Gerrit-Attention: Chirag Arora <heyc...@google.com>
Gerrit-Attention: Gauthier Ambard <gam...@chromium.org>
Gerrit-Comment-Date: Fri, 26 Sep 2025 16:39:55 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Chirag Arora (Gerrit)

unread,
Sep 26, 2025, 12:53:32 PM (2 days ago) Sep 26
to Fiona Macintosh, Gauthier Ambard, AyeAye, chromium...@chromium.org, Permissions Reviews, feature-me...@chromium.org, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org
Attention needed from Gauthier Ambard

Chirag Arora added 3 comments

File ios/chrome/browser/page_info/tracking_protection/coordinator/page_info_tracking_protection_mediator.mm
Line 61, Patchset 10:// Determines if the model currently has an exception for the current site.
Fiona Macintosh . resolved

```suggestion
// Determines if there is an exception for the current site.
```

Chirag Arora

Fix applied.

Chirag Arora

Done

File ios/chrome/browser/page_info/ui_bundled/page_info_view_controller.mm
Line 494, Patchset 10: TableViewDetailIconCell* cell =
DequeueTableViewCell<TableViewDetailIconCell>(tableView);

cell.accessoryType = UITableViewCellAccessoryNone;
Fiona Macintosh . resolved
```suggestion
TableViewDetailIconCell* cell =
DequeueTableViewCell<TableViewDetailIconCell>(tableView);
cell.accessoryType = UITableViewCellAccessoryNone;
```
Chirag Arora

Fix applied.

Chirag Arora

Done

Line 539, Patchset 10: TableViewCellContentConfiguration* configuration =
[[TableViewCellContentConfiguration alloc] init];

if (_trackingProtectionInfo.hasTrackingProtectionException) {
configuration.title = l10n_util::GetNSString(
IDS_TRACKING_PROTECTIONS_BUTTON_RESUME_PROTECTIONS_LABEL);
} else {
configuration.title = l10n_util::GetNSString(
IDS_TRACKING_PROTECTIONS_BUTTON_PAUSE_PROTECTIONS_LABEL);
}
configuration.titleColor = [UIColor colorNamed:kBlueColor];

TableViewCell* cell =
[TableViewCellContentConfiguration dequeueTableViewCell:tableView];
cell.contentConfiguration = configuration;

return cell;
Fiona Macintosh . resolved
```suggestion
TableViewCellContentConfiguration* configuration =
[[TableViewCellContentConfiguration alloc] init];
if (_trackingProtectionInfo.hasTrackingProtectionException) {
configuration.title = l10n_util::GetNSString(
IDS_TRACKING_PROTECTIONS_BUTTON_RESUME_PROTECTIONS_LABEL);
} else {
configuration.title = l10n_util::GetNSString(
IDS_TRACKING_PROTECTIONS_BUTTON_PAUSE_PROTECTIONS_LABEL);
}
configuration.titleColor = [UIColor colorNamed:kBlueColor];
      TableViewCell* cell =
[TableViewCellContentConfiguration dequeueTableViewCell:tableView];
cell.contentConfiguration = configuration;
return cell;
```
nit: reducing more unneeded blank lines
Chirag Arora

Fix applied.

Chirag Arora

Done

Open in Gerrit

Related details

Attention is currently required from:
  • Gauthier Ambard
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement 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: I11910c3f8c9499e36c383ab246bb6f03c0702235
Gerrit-Change-Number: 6983503
Gerrit-PatchSet: 14
Gerrit-Owner: Chirag Arora <heyc...@google.com>
Gerrit-Reviewer: Fiona Macintosh <fmaci...@google.com>
Gerrit-Reviewer: Gauthier Ambard <gam...@chromium.org>
Gerrit-CC: Permissions Reviews <permissio...@chromium.org>
Gerrit-Attention: Gauthier Ambard <gam...@chromium.org>
Gerrit-Comment-Date: Fri, 26 Sep 2025 16:53:24 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Fiona Macintosh <fmaci...@google.com>
Comment-In-Reply-To: Chirag Arora <heyc...@google.com>
satisfied_requirement
unsatisfied_requirement
open
diffy
Reply all
Reply to author
Forward
0 new messages