| Commit-Queue | +1 |
#import "ios/chrome/browser/settings/ui_bundled/clear_browsing_data/coordinator/quick_delete_util.h"Typically, we don't want UI to depend on coordinator logic. Should I move the quick_delete_util to a public folder then?
- (void)setShouldShowSearchHistoryCell:(BOOL)shouldShowSearchHistoryCell {I've removed the early return in this method as I want it to always reach the snapshot update logic to update both the "Search history" cell and the "My Activity" cell. It results in a a cleaner UI update when both must be updated (eg. removed).
See this link to see how it was behaving previously: https://drive.google.com/file/d/17wD4v791R30aVqWBRR-3Rxp893uxqZXe/view?usp=sharing&resourcekey=0-1nr-nLiVxDdFRLxWOMbMng
if ([_otherDataPageTitle
isEqualToString:l10n_util::GetNSString(
IDS_SETTINGS_OTHER_GOOGLE_DATA_TITLE)]) {Angela Novakovic1) Because of translations, we can't rely on the value of strings. You'll need to pass in a type of some sort.
2) prefer early returns to writing code inside an if statement's scope if possible.
Done
break;Angela Novakovicreturn? otherwise you would hit the NOTREACHED() below.
Done
NOTREACHED();Angela Novakovicwrong location, this should be one line below, I think.
Acknowledged
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Overall question: I just realized the files are in:
`ios/chrome/browser/settings/ui_bundled/clear_browsing_data/quick_delete_other_data/`
why aren't they in:
`ios/chrome/browser/settings/clear_browsing_data/quick_delete_other_data/`
If they use the new ui/public/coordinator/test structure, why are they still located in `ui_bundled`?
#import "ios/chrome/browser/settings/ui_bundled/clear_browsing_data/coordinator/quick_delete_util.h"Typically, we don't want UI to depend on coordinator logic. Should I move the quick_delete_util to a public folder then?
yes
- (void)setShouldShowSearchHistoryCell:(BOOL)shouldShowSearchHistoryCell {I've removed the early return in this method as I want it to always reach the snapshot update logic to update both the "Search history" cell and the "My Activity" cell. It results in a a cleaner UI update when both must be updated (eg. removed).
See this link to see how it was behaving previously: https://drive.google.com/file/d/17wD4v791R30aVqWBRR-3Rxp893uxqZXe/view?usp=sharing&resourcekey=0-1nr-nLiVxDdFRLxWOMbMng
Acknowledged
cell.accessoryView = [[UIImageView alloc]
initWithImage:DefaultAccessorySymbolConfigurationWithRegularWeight(
kExternalLinkSymbol)];
cell.accessoryView.tintColor = [UIColor colorNamed:kGrey500Color];
return;
case ItemIdentifier::kMyActivityIdentifier: {[[fallthrough]];
NOTREACHED();still in the wrong location, this should be AFTER the `}` on the next line
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Overall question: I just realized the files are in:
`ios/chrome/browser/settings/ui_bundled/clear_browsing_data/quick_delete_other_data/`
why aren't they in:
`ios/chrome/browser/settings/clear_browsing_data/quick_delete_other_data/`If they use the new ui/public/coordinator/test structure, why are they still located in `ui_bundled`?
I think that at the time, we were just reorganizing the `clear_browsing_data` folder, but I can definitely move the `clear_browsing_data` folder to be directly at the `settings/` level in another CL.
#import "ios/chrome/browser/settings/ui_bundled/clear_browsing_data/coordinator/quick_delete_util.h"Alexis HétuTypically, we don't want UI to depend on coordinator logic. Should I move the quick_delete_util to a public folder then?
yes
Done
cell.accessoryView = [[UIImageView alloc]
initWithImage:DefaultAccessorySymbolConfigurationWithRegularWeight(
kExternalLinkSymbol)];
cell.accessoryView.tintColor = [UIColor colorNamed:kGrey500Color];
return;
case ItemIdentifier::kMyActivityIdentifier: {Angela Novakovic[[fallthrough]];
Done
NOTREACHED();Angela Novakovicstill in the wrong location, this should be AFTER the `}` on the next line
Done
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
Angela NovakovicOverall question: I just realized the files are in:
`ios/chrome/browser/settings/ui_bundled/clear_browsing_data/quick_delete_other_data/`
why aren't they in:
`ios/chrome/browser/settings/clear_browsing_data/quick_delete_other_data/`If they use the new ui/public/coordinator/test structure, why are they still located in `ui_bundled`?
I think that at the time, we were just reorganizing the `clear_browsing_data` folder, but I can definitely move the `clear_browsing_data` folder to be directly at the `settings/` level in another CL.
+1, please do this (in a follow-up CL)
(BOOL)animated {Do we ever expect to pass `@NO` for this parameter? If not, it's somewhat simpler to make this a no-arg method and just always animate.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Angela NovakovicOverall question: I just realized the files are in:
`ios/chrome/browser/settings/ui_bundled/clear_browsing_data/quick_delete_other_data/`
why aren't they in:
`ios/chrome/browser/settings/clear_browsing_data/quick_delete_other_data/`If they use the new ui/public/coordinator/test structure, why are they still located in `ui_bundled`?
Tommy MartinoI think that at the time, we were just reorganizing the `clear_browsing_data` folder, but I can definitely move the `clear_browsing_data` folder to be directly at the `settings/` level in another CL.
+1, please do this (in a follow-up CL)
CL is in the review stage. 😊
Do we ever expect to pass `@NO` for this parameter? If not, it's somewhat simpler to make this a no-arg method and just always animate.
| 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. |
| Code-Review | +1 |
| 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. |
[iOS][PRDBD] Connect consumer to the "Other data" page view controller
This CL connects the QuickDeleteOtherDataConsumer to the
QuickDeleteOtherDataViewController and updates the view controller to
display the "Search history" cell and the "My Activity" cell based on
the consumer.
Design doc: go/bling-delete-browsing-data
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |