Chromium Code Reviews
DescriptionEnsure that the WebWidgetClient cannot be a nullptr by adding DCHECK()s.
There was only one call site in print_web_view_helper where a nullptr was being passed instead of a valid WebWidgetClient, to fix this the following changes were also made:
* Make WebWidgetClient dtor public so the class can be instantiated.
* Pass a valid WebWidgetClient in the print_web_view_helper
A subsequent CL will analyze and remove m_client null checks in WebFrameWidgetImpl.
I left WebFrameViewClient as a ref as this appears to be internal to blink and will adhere to blink standards.
BUG=696895
Review-Url: https://codereview.chromium.org/2773003002
Cr-Commit-Position: refs/heads/master@{#460235}
Committed: https://chromium.googlesource.com/chromium/src/+/9df2c54436a76ebaf6bfcc317815e776e4a0a7f5
Patch Set 1 #Patch Set 2 : Make WebWidgetClient parameter a pointer again, and dcheck it's valid. #Patch Set 3 : Break dependancy on upstream branch. #Patch Set 4 : WebViewTestClient now overrides the virtual dtor in WebWidgetClient. #Patch Set 5 : WebViewClient dtor now overrides the virtual dtor in WebWidgetClient. #
Messages
Total messages: 33 (17 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||