Index: content/common/sandbox_win.cc |
diff --git a/content/common/sandbox_win.cc b/content/common/sandbox_win.cc |
index a3554a23e8d5b18cbe6c8e1482c45274445d702b..122047f4886af73932144c71f149a10cc123eeb4 100644 |
--- a/content/common/sandbox_win.cc |
+++ b/content/common/sandbox_win.cc |
@@ -24,6 +24,7 @@ |
#include "base/win/iat_patch_function.h" |
#include "base/win/scoped_handle.h" |
#include "base/win/scoped_process_information.h" |
+#include "base/win/win_util.h" |
#include "base/win/windows_version.h" |
#include "content/common/content_switches_internal.h" |
#include "content/public/common/content_client.h" |
@@ -743,8 +744,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))); |
} |
} |
} |