Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(306)

Unified Diff: content/browser/compositor/gpu_process_transport_factory.cc

Issue 1406993003: aura: Handle released widget when GPU channel gets established (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/compositor/gpu_process_transport_factory.cc
diff --git a/content/browser/compositor/gpu_process_transport_factory.cc b/content/browser/compositor/gpu_process_transport_factory.cc
index b7ed84406a3a9d635384ddda1e3765b703764d6b..2bccfa35bd3d6aaaaaef472523ac65282fe0a56a 100644
--- a/content/browser/compositor/gpu_process_transport_factory.cc
+++ b/content/browser/compositor/gpu_process_transport_factory.cc
@@ -231,7 +231,9 @@ void GpuProcessTransportFactory::EstablishedGpuChannel(
if (!compositor)
return;
PerCompositorData* data = per_compositor_data_[compositor.get()];
piman 2015/10/20 01:51:49 Can you use per_compositor_data_.find(compositor.g
- DCHECK(data);
+ // The widget might have been released in the meantime.
+ if (!data)
+ return;
if (num_attempts > kNumRetriesBeforeSoftwareFallback) {
#if defined(OS_CHROMEOS)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698