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

Unified Diff: content/child/child_io_surface_manager_mac.cc

Issue 1351753002: Mac: Ensure that Mach messages always get a reply (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: IRF Created 5 years, 3 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
Index: content/child/child_io_surface_manager_mac.cc
diff --git a/content/child/child_io_surface_manager_mac.cc b/content/child/child_io_surface_manager_mac.cc
index fb4ef9ac6524992b20166de6be75ca9ccf1f3b0c..b3408463087cde6406e18a4a92a6f3b969d28b76 100644
--- a/content/child/child_io_surface_manager_mac.cc
+++ b/content/child/child_io_surface_manager_mac.cc
@@ -129,6 +129,11 @@ IOSurfaceRef ChildIOSurfaceManager::AcquireIOSurface(
return nullptr;
}
+ // Crash the renderer (for now) to see if this was the cause of renderer hangs
+ // that have recently been noticed.
+ // http://crbug.com/532149
+ CHECK(data.reply.msg.result);
+
// Deallocate the right after creating an IOSurface reference.
base::mac::ScopedMachSendRight scoped_io_surface_right(
data.reply.msg.io_surface_port.name);
« no previous file with comments | « content/browser/browser_io_surface_manager_mac_unittest.cc ('k') | content/common/mac/io_surface_manager_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698