| Code-Review | +1 |
lgtm
Thank you for the cleanup :-)
constexpr char kSaveCreditCardPromptResultIOSPrefix[] =nit: I think you can use `std::string_view` here
```
constexpr std::string_view kSaveCreditCardPromptResultIOSPrefix =
"Autofill.SaveCreditCardPromptResult.IOS";
```
constexpr char kSaveCreditCardPromptResultIOSPrefix[] =ditto, I think we can use `constexpr std::string_view` for all those constants
constexpr char16_t kFirstInfobarMessageText[] = u"FakeInfobarDelegate1";nit: you can use `constexpr std::u16string_view` here by changing `AddInfobar(...)` into
```
InfoBarIOS* AddInfobar(InfobarType type, std::u16string_view message_text) {
std::unique_ptr<InfoBarIOS> added_infobar =
std::make_unique<FakeInfobarIOS>(type, std::u16string(message_text));
...
}
```
const char* const kTestUrls[] = {"http://chromium.org", "http://google.com",Please change to `std::array<std::string_view>` which is better. This will require a small change where `kTestUrls` is used.
```
constexpr auto kTestUrls = std::to_array<std::string_view>({
"http://chromium.org",
"http://google.com",
});
```
and then
```
for (std::string_view url : kTestUrls) {
std::unique_ptr<synced_sessions::DistantTab> tab =
std::make_unique<synced_sessions::DistantTab>();
tab->virtual_url = GURL(url);
tabs.push_back(std::move(tab));
}
```
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Note: please ignore my comments if they require changing other files (I don't want you to lose my +1) but some of them can be done just locally, so may be worth doing
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Note: please ignore my comments if they require changing other files (I don't want you to lose my +1) but some of them can be done just locally, so may be worth doing
All done, thanks!
constexpr char kSaveCreditCardPromptResultIOSPrefix[] =nit: I think you can use `std::string_view` here
```
constexpr std::string_view kSaveCreditCardPromptResultIOSPrefix =
"Autofill.SaveCreditCardPromptResult.IOS";
```
Done
constexpr char kSaveCreditCardPromptResultIOSPrefix[] =ditto, I think we can use `constexpr std::string_view` for all those constants
Done
constexpr char16_t kFirstInfobarMessageText[] = u"FakeInfobarDelegate1";nit: you can use `constexpr std::u16string_view` here by changing `AddInfobar(...)` into
```
InfoBarIOS* AddInfobar(InfobarType type, std::u16string_view message_text) {
std::unique_ptr<InfoBarIOS> added_infobar =
std::make_unique<FakeInfobarIOS>(type, std::u16string(message_text));
...
}
```
Done
const char* const kTestUrls[] = {"http://chromium.org", "http://google.com",Please change to `std::array<std::string_view>` which is better. This will require a small change where `kTestUrls` is used.
```
constexpr auto kTestUrls = std::to_array<std::string_view>({
"http://chromium.org",
"http://google.com",
});
```and then
```
for (std::string_view url : kTestUrls) {
std::unique_ptr<synced_sessions::DistantTab> tab =
std::make_unique<synced_sessions::DistantTab>();
tab->virtual_url = GURL(url);
tabs.push_back(std::move(tab));
}
```
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
2 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/autofill/ui_bundled/bottom_sheet/save_card_bottom_sheet_mediator_unittest.mm
Insertions: 6, Deletions: 6.
The diff is too large to show. Please review the diff.
```
```
The name of the file: ios/chrome/browser/bring_android_tabs/ui_bundled/tab_list_from_android_mediator_unittest.mm
Insertions: 3, Deletions: 3.
The diff is too large to show. Please review the diff.
```
```
The name of the file: ios/chrome/browser/badges/ui_bundled/badge_mediator_unittest.mm
Insertions: 8, Deletions: 6.
The diff is too large to show. Please review the diff.
```
```
The name of the file: ios/chrome/browser/autofill/model/credit_card/autofill_save_card_infobar_delegate_unittest.mm
Insertions: 1, Deletions: 1.
The diff is too large to show. Please review the diff.
```
[iOS] Remove the need for exit-time destructors in some locations
This CL removes the need for exit time destructors in iOS code
in a few locations where it is trivial to do so.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |