This change will be blocked from submission as there are files which do not meet the coverage criteria. Following files have incremental coverage(all tests) < 70%.
Please add tests for uncovered lines, or add Low-Coverage-Reason:<reason> in the change description to bypass. See https://bit.ly/46jhjS9 to understand when it is okay to bypass. If you think coverage is underreported, file a bug at https://bit.ly/3ENM7Pe
Code-Coverage | -1 |
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
This change meets the code coverage requirements.
Code-Coverage | +1 |
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Code-Review | +1 |
DCHECK(model);
Shouldn't we `CHECK` everywhere?
withType:(BookmarkModelType)type
Only one `with` should exist in a method name.
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Commit-Queue | +2 |
Shouldn't we `CHECK` everywhere?
Done
Only one `with` should exist in a method name.
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
This change meets the code coverage requirements.
Code-Coverage | +1 |
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
3 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/bookmarks/model/bookmarks_utils.cc
Insertions: 6, Deletions: 6.
The diff is too large to show. Please review the diff.
```
```
The name of the file: ios/chrome/browser/bookmarks/ui_bundled/bookmark_utils_ios.h
Insertions: 1, Deletions: 3.
The diff is too large to show. Please review the diff.
```
```
The name of the file: ios/chrome/browser/bookmarks/ui_bundled/folder_chooser/bookmarks_folder_chooser_mediator.mm
Insertions: 2, Deletions: 2.
The diff is too large to show. Please review the diff.
```
```
The name of the file: ios/chrome/browser/bookmarks/ui_bundled/folder_chooser/bookmarks_folder_chooser_sub_data_source_impl.h
Insertions: 1, Deletions: 1.
The diff is too large to show. Please review the diff.
```
```
The name of the file: ios/chrome/browser/bookmarks/ui_bundled/folder_chooser/bookmarks_folder_chooser_sub_data_source_impl.mm
Insertions: 1, Deletions: 1.
The diff is too large to show. Please review the diff.
```
```
The name of the file: ios/chrome/browser/bookmarks/ui_bundled/folder_chooser/bookmarks_folder_chooser_sub_data_source_impl_unittest.mm
Insertions: 1, Deletions: 1.
The diff is too large to show. Please review the diff.
```
[ios] Migrate bookmark folder chooser away from LegacyBookmarkModel
Usage of LegacyBookmarkModel is getting replaced with
bookmarks::BookmarkModel. This patch migrates occurrences related to
the bookmark folder chooser, requiring a few simple changes to in the
utility libraries it relies on.
The change is non-trivial because the folder chooser UI shows local and
account bookmarks separately, and has special logic for each. Among
other considerations, this manifests in code as PrimaryPermanentNodes()
being used in BookmarksFolderChooserSubDataSourceImpl, the latter being
instantiated twice, once for local bookmarks and once for account ones.
Before this patch, the selection of relevant nodes was achieved
seamlessly by LegacyBookmarkModel. After this patch, the selection is
done explicitly in PrimaryPermanentNodes(), which is extended to take
one more parameter, enum BookmarkModelType, to distinguish the two
cases.
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |