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

Unified Diff: content/common/gpu/gpu_channel_manager.cc

Issue 8877001: Add more CHECK in GPU and NPAPI process on invalid file descriptors (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Add TODO for clean up later as this change is temporary. Created 9 years 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 | « content/common/gpu/gpu_channel.cc ('k') | content/common/np_channel_base.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/gpu_channel_manager.cc
diff --git a/content/common/gpu/gpu_channel_manager.cc b/content/common/gpu/gpu_channel_manager.cc
index cacb7eb61b815cf4b903f543d8af5134e34af5d2..60db84a91e8c6f52a925037e94b0f75a0e386bfd 100644
--- a/content/common/gpu/gpu_channel_manager.cc
+++ b/content/common/gpu/gpu_channel_manager.cc
@@ -77,10 +77,13 @@ void GpuChannelManager::OnEstablishChannel(int renderer_id) {
content::GPUInfo gpu_info;
GpuChannelMap::const_iterator iter = gpu_channels_.find(renderer_id);
- if (iter == gpu_channels_.end())
+ if (iter == gpu_channels_.end()) {
channel = new GpuChannel(this, watchdog_, renderer_id, false);
- else
+ } else {
+ // TODO(xhwang): Added to investigate crbug.com/95732. Clean up after fixed.
+ CHECK(false);
channel = iter->second;
+ }
DCHECK(channel != NULL);
« no previous file with comments | « content/common/gpu/gpu_channel.cc ('k') | content/common/np_channel_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698