Chromium Code Reviews
DescriptionRenderWidgetHostViewChildFrame's called a virtual in its ctor.
It appears that calling SetView in the ctor can lead to a path where
SetNeedsBeginFrame is invoked on the newly constructed object.
Since RenderWidgetHostViewGuest is a subclass of RenderWidgetHostViewChildFrame
its virtual function would not get invoked since the vtable had not
be constructed yet.
Change SetView to be called after the class is fully
instantiated.
Also fix RenderWidgetHostViewAura since calling this correctly
now leads to an assert that the observer is only added once.
So track whether the observer has been added so that when the
begin frame source is added an assertion doesn't occur.
BUG=652212
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation
Committed: https://crrev.com/5bf106420af2df80286f4f404c44dbf818469db1
Cr-Commit-Position: refs/heads/master@{#423182}
Patch Set 1 #Patch Set 2 : Fix some failures in the tests #
Total comments: 11
Patch Set 3 : Fix comments from clamy@ #Patch Set 4 : Move other functions that invoke methods passing "this" into functions inside the Init method #
Total comments: 2
Patch Set 5 : Move guest ctor to private #Messages
Total messages: 39 (22 generated)
|