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

Unified Diff: content/common/sandbox_mac_fontloading_unittest.mm

Issue 2852803002: Remove base::SharedMemory::ShareToProcess. (Closed)
Patch Set: Compile error. Created 3 years, 8 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/common/sandbox_mac_fontloading_unittest.mm
diff --git a/content/common/sandbox_mac_fontloading_unittest.mm b/content/common/sandbox_mac_fontloading_unittest.mm
index a9210f32bd6712eec414c1fd93cc76d83e09ad8f..e7e3d20e2bd79afa65f0e8aa3d8662472e6536c0 100644
--- a/content/common/sandbox_mac_fontloading_unittest.mm
+++ b/content/common/sandbox_mac_fontloading_unittest.mm
@@ -66,9 +66,9 @@ bool FontLoadingTestCase::BeforeSandboxInit() {
}
bool FontLoadingTestCase::SandboxedTest() {
- base::SharedMemoryHandle shmem_handle;
- if (!font_shmem_->ShareToProcess(base::kNullProcessHandle, &shmem_handle)) {
- LOG(ERROR) << "SharedMemory::ShareToProcess failed";
+ base::SharedMemoryHandle shmem_handle = font_shmem_->handle().Duplicate();
+ if (!shmem_handle.IsValid()) {
+ LOG(ERROR) << "SharedMemory handle duplication failed";
return false;
}
« no previous file with comments | « content/child/resource_dispatcher_unittest.cc ('k') | content/renderer/media/audio_message_filter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698