| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
static void SetPrimaryDisplay(display::DisplayList& display_list,nit: extract these into a different class (follow-up is fine).
if (!delegate_) {Just `CHECK(delegate_)` instead?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
static void SetPrimaryDisplay(display::DisplayList& display_list,nit: extract these into a different class (follow-up is fine).
Yup, these belong to `//ui/display/headless/headless_screen_util.h/cc`
if (!delegate_) {Just `CHECK(delegate_)` instead?
Scary... technically the `HeadlessScreenManager` instance can outlive the `display::Screen` instances that implement the delegate interface. Just ignoring the stray calls to these methods may be enough though.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
if (!delegate_) {Peter KvitekJust `CHECK(delegate_)` instead?
Scary... technically the `HeadlessScreenManager` instance can outlive the `display::Screen` instances that implement the delegate interface. Just ignoring the stray calls to these methods may be enough though.
You're not ignoring it, NOTREACHED() is fatal! Besides, we don't put code (`return` in this case) after NOTREACHED().
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
if (!delegate_) {Peter KvitekJust `CHECK(delegate_)` instead?
Andrey KosyakovScary... technically the `HeadlessScreenManager` instance can outlive the `display::Screen` instances that implement the delegate interface. Just ignoring the stray calls to these methods may be enough though.
You're not ignoring it, NOTREACHED() is fatal! Besides, we don't put code (`return` in this case) after NOTREACHED().
Yes, NOTREACHED() is fatal, but the code is using NOTIMPLEMENTED() which is not fatal, it's just logging. Even that may be an overkill though.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
static void SetPrimaryDisplay(display::DisplayList& display_list,Peter Kviteknit: extract these into a different class (follow-up is fine).
Yup, these belong to `//ui/display/headless/headless_screen_util.h/cc`
if (!delegate_) {Peter KvitekJust `CHECK(delegate_)` instead?
Andrey KosyakovScary... technically the `HeadlessScreenManager` instance can outlive the `display::Screen` instances that implement the delegate interface. Just ignoring the stray calls to these methods may be enough though.
Peter KvitekYou're not ignoring it, NOTREACHED() is fatal! Besides, we don't put code (`return` in this case) after NOTREACHED().
Yes, NOTREACHED() is fatal, but the code is using NOTIMPLEMENTED() which is not fatal, it's just logging. Even that may be an overkill though.
Done
| 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. |
| Commit-Queue | +2 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
[headless] Add Emulation.setPrimaryScreen DevTools method
This CL introduces Emulation.setPrimaryScreen that allows browser
automaton users to change the primary screen. This is currently
supported by headless shell only. Support on other desktop platforms
will be added by follow up CLs.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |