Commit 5c3c13aa authored by isheriff's avatar isheriff Committed by Commit bot

Fix crash when view is already deleted

ContentCaptureSubscription should only create a window activity tracker
if the RenderWidgetHostView on the source is not deleted.

BUG= 572577

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

Cr-Commit-Position: refs/heads/master@{#367123}
parent 3a896bbd
...@@ -446,8 +446,10 @@ ContentCaptureSubscription::ContentCaptureSubscription( ...@@ -446,8 +446,10 @@ ContentCaptureSubscription::ContentCaptureSubscription(
// TODO(isheriff): Needs implementation on non-aura platforms. // TODO(isheriff): Needs implementation on non-aura platforms.
// https://crbug.com/567735 // https://crbug.com/567735
#if defined(USE_AURA) #if defined(USE_AURA)
window_activity_tracker_.reset( if (view) {
new content::WindowActivityTrackerAura(view->GetNativeView())); window_activity_tracker_.reset(
new content::WindowActivityTrackerAura(view->GetNativeView()));
}
#endif #endif
timer_subscriber_.reset(new FrameSubscriber( timer_subscriber_.reset(new FrameSubscriber(
media::VideoCaptureOracle::kTimerPoll, oracle_proxy, &delivery_log_, media::VideoCaptureOracle::kTimerPoll, oracle_proxy, &delivery_log_,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment