summaryrefslogtreecommitdiff
path: root/chromium/content/browser/media/capture/cursor_renderer_aura.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/content/browser/media/capture/cursor_renderer_aura.cc')
-rw-r--r--chromium/content/browser/media/capture/cursor_renderer_aura.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/chromium/content/browser/media/capture/cursor_renderer_aura.cc b/chromium/content/browser/media/capture/cursor_renderer_aura.cc
index b4a2ba5a4a1..f78e56c3451 100644
--- a/chromium/content/browser/media/capture/cursor_renderer_aura.cc
+++ b/chromium/content/browser/media/capture/cursor_renderer_aura.cc
@@ -109,6 +109,11 @@ bool CursorRendererAura::SnapshotCursorState(const gfx::Rect& region_in_frame) {
return false;
}
aura::Window* active_window = activation_client->GetActiveWindow();
+ if (!active_window) {
+ DVLOG(2) << "Skipping update as there is no active window";
+ Clear();
+ return false;
+ }
if (!active_window->Contains(window_)) {
// Return early if the target window is not active.
DVLOG(2) << "Skipping update on an inactive window";