Delay testing lifecycle observers until known to be alive.

When iterating, ContextLifecycleNotifier must be able to cope with
pointer references to ContextLifecycleObservers that may have been
destructed while iterating&notifying others.

Delay the observer type check until we've verified that the observer is
alive.

R=haraken
BUG=464285

Review URL: https://codereview.chromium.org/983713004

git-svn-id: svn://svn.chromium.org/blink/trunk@191372 bbb929c8-8fbe-4397-9dbb-9b2b20218538
1 file changed
tree: fc0503d596a562cf7c69b0ca4ca0ed0cf1ac0226
  1. third_party/