[root-scroller] Fix crash when considering plugin
Root scroller shouldn't consider plugins. However, the current method of getting the scrollable area would check for a local frame and try to convert its view to a LocalFrameView. In the case of a plugin, the ContentFrame()->IsLocalFrame may return true but the EmbededContentView is a PluginView rather than a LocalFrameView. This CL cleans up these checks by looking exclusively at the EmbeddedContentView since that's all we care about. Bug: 903440 Change-Id: I7f172559321ecb4777e1fd85ed63f105798df257 Reviewed-on: https://chromium-review.googlesource.com/c/1330330Reviewed-by:Dave Tapuska <dtapuska@chromium.org> Commit-Queue: David Bokan <bokan@chromium.org> Cr-Commit-Position: refs/heads/master@{#607651}
Showing
Please register or sign in to comment