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

Unified Diff: content/browser/renderer_host/pepper/pepper_gamepad_host_unittest.cc

Issue 11312017: Avoid leaking SerializedHandles. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 1 month 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/browser/renderer_host/pepper/pepper_gamepad_host.cc ('k') | ppapi/proxy/gamepad_resource.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/pepper/pepper_gamepad_host_unittest.cc
diff --git a/content/browser/renderer_host/pepper/pepper_gamepad_host_unittest.cc b/content/browser/renderer_host/pepper/pepper_gamepad_host_unittest.cc
index 23c90efca9e2a46de2d3de10c97a97f8713993fd..da4e4486b0b4ce4b000fd0afe37adee09f81ed38 100644
--- a/content/browser/renderer_host/pepper/pepper_gamepad_host_unittest.cc
+++ b/content/browser/renderer_host/pepper/pepper_gamepad_host_unittest.cc
@@ -178,7 +178,7 @@ TEST_F(PepperGamepadHostTest, WaitForReply) {
// Extract the shared memory handle.
base::SharedMemoryHandle reply_handle;
- EXPECT_TRUE(reply_params.GetSharedMemoryHandleAtIndex(0, &reply_handle));
+ EXPECT_TRUE(reply_params.TakeSharedMemoryHandleAtIndex(0, &reply_handle));
// Validate the shared memory.
base::SharedMemory shared_memory(reply_handle, true);
« no previous file with comments | « content/browser/renderer_host/pepper/pepper_gamepad_host.cc ('k') | ppapi/proxy/gamepad_resource.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698