Index: content/common/sandbox_win.cc |
diff --git a/content/common/sandbox_win.cc b/content/common/sandbox_win.cc |
index 88f703cef3388f99df46ec9f4a951c33c4793fc1..a9dd79a834fed4addfe0b5a9d36b916ad90277cc 100644 |
--- a/content/common/sandbox_win.cc |
+++ b/content/common/sandbox_win.cc |
@@ -38,6 +38,9 @@ |
#include "sandbox/win/src/win_utils.h" |
#include "ui/gfx/win/direct_write.h" |
+#if defined(OS_WIN) |
+#include "base/win/win_util.h" |
+#endif |
static sandbox::BrokerServices* g_broker_services = NULL; |
static sandbox::TargetServices* g_target_services = NULL; |
@@ -747,8 +750,9 @@ base::Process StartSandboxedProcess( |
if (direct_write_font_cache_section.Open(name, true)) { |
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))); |
+ cmd_line->AppendSwitchASCII( |
+ switches::kFontCacheSharedHandle, |
+ base::UintToString(base::win::HandleToUint32(shared_handle))); |
} |
} |
} |