Add a `base::WeakPtr<WebContents>` field to SerialChooserController and stop subclassing from WebContentsObserver. This follows the Observer docs: > don't create a `WebContentsObserver` just to be able to check > for a null `WebContentsObserver::web_contents()`. > Use a `base::WeakPtr<WebContents>` instead. |
||
|---|---|---|
| .. | ||
| electron_serial_delegate.cc | ||
| electron_serial_delegate.h | ||
| serial_chooser_context.cc | ||
| serial_chooser_context.h | ||
| serial_chooser_context_factory.cc | ||
| serial_chooser_context_factory.h | ||
| serial_chooser_controller.cc | ||
| serial_chooser_controller.h | ||