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

Unified Diff: content/common/sandbox_win.cc

Issue 1320783002: Make SharedMemoryHandle a class on windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ipc_global
Patch Set: Fix DCHECK. 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/common/sandbox_win.cc
diff --git a/content/common/sandbox_win.cc b/content/common/sandbox_win.cc
index 96bb05c347d61c6a90283ecfb88089cfd3a3166a..c0afe7651b1c80b7ddfbdfed9fece79dc150bd03 100644
--- a/content/common/sandbox_win.cc
+++ b/content/common/sandbox_win.cc
@@ -728,8 +728,8 @@ base::Process StartSandboxedProcess(
base::SharedMemory direct_write_font_cache_section;
if (direct_write_font_cache_section.Open(name, true)) {
- void* shared_handle =
- policy->AddHandleToShare(direct_write_font_cache_section.handle());
+ void* shared_handle = policy->AddHandleToShare(
+ direct_write_font_cache_section.handle().GetHandle());
cmd_line->AppendSwitchASCII(switches::kFontCacheSharedHandle,
base::UintToString(reinterpret_cast<unsigned int>(shared_handle)));
}

Powered by Google App Engine
This is Rietveld 408576698