DescriptionFix crash in WindowEventRouter::OnActiveWindowChanged when closing an incognito window.
When closing an incongito window, it is possible that the previously focused profile is already
destroyed. Since profile_->IsSameProfile(previous_focused_profile) is always true in this case, we
can just skip the check and dispatch the events against profile_.
BUG=139237
TEST=open an incognito window and close it and hope it doesn't crash.
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=150656
Patch Set 1 #
Total comments: 6
Patch Set 2 : Trim unnecessary parens #Patch Set 3 : . #Messages
Total messages: 8 (0 generated)
|