| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
// Android does not have a SupportsTabGroups() method.Even if its not supported, we can still use the new interfaces right (Just for consistency) or the new interfaces are yet fully back compatible?
ASSERT_TRUE(group.has_value());nit: ASSERT_TRUE(group);
`ASSERT_TRUE(std::optional<T>);` directly checks for the value. So a bit less code.
ASSERT_TRUE(new_visual_data.has_value());nit: `ASSERT_TRUE(new_visual_data)`
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Even if its not supported, we can still use the new interfaces right (Just for consistency) or the new interfaces are yet fully back compatible?
In this case, the new interfaces aren't fully backwards compatible. :-( Fortunately the things that don't support tab groups are things like Chrome Apps, which are not supported on Android.
nit: ASSERT_TRUE(group);
`ASSERT_TRUE(std::optional<T>);` directly checks for the value. So a bit less code.
Done.
FWIW I like to use has_value() so I don't have to think about cases like this:
```
std::optional<bool> foo = false;
ASSERT_TRUE(foo);
```
Is naked `foo` true-ish or false-ish? It's true-ish, but I have to think about it. :-)
ASSERT_TRUE(new_visual_data.has_value());James Cooknit: `ASSERT_TRUE(new_visual_data)`
Done
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
lgtm!
ASSERT_TRUE(group.has_value());James Cooknit: ASSERT_TRUE(group);
`ASSERT_TRUE(std::optional<T>);` directly checks for the value. So a bit less code.
Done.
FWIW I like to use has_value() so I don't have to think about cases like this:
```
std::optional<bool> foo = false;
ASSERT_TRUE(foo);
```
Is naked `foo` true-ish or false-ish? It's true-ish, but I have to think about it. :-)
From syntax point I think of optionals as unique_ptr/ptrs. But I must agree that in the examples as above, it makes sense to use `.value()`. I tend to not to use `value()` unless it provides clarity.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
// Android does not have a SupportsTabGroups() method.James CookEven if its not supported, we can still use the new interfaces right (Just for consistency) or the new interfaces are yet fully back compatible?
In this case, the new interfaces aren't fully backwards compatible. :-( Fortunately the things that don't support tab groups are things like Chrome Apps, which are not supported on Android.
out of curiosity, do we plan to make them compatibly? (So that we just use these interfaces across the codebase without thinking)
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Thanks for the review!
// Android does not have a SupportsTabGroups() method.James CookEven if its not supported, we can still use the new interfaces right (Just for consistency) or the new interfaces are yet fully back compatible?
Zoraiz NaeemIn this case, the new interfaces aren't fully backwards compatible. :-( Fortunately the things that don't support tab groups are things like Chrome Apps, which are not supported on Android.
out of curiosity, do we plan to make them compatibly? (So that we just use these interfaces across the codebase without thinking)
Yeah, I think the plan is to move them slowly towards being more compatible. I've done a little bit of that with the tabGroups API changes. But there's a lot left to do. I think there are a couple folks on the Clank team looking at it.
| 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. |
extensions: Enable chrome.tabGroups.update() API on desktop Android
Rewrite the API implementation to use the cross-platform
BrowserWindowInterface and TabListInterface. Do the same for the
browser tests.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |