| Index: content/public/common/common_param_traits.h
|
| diff --git a/content/public/common/common_param_traits.h b/content/public/common/common_param_traits.h
|
| index 69fb84a5fb6c8539656293ca6ce004c12e9ed3a8..170caad9cc5e611e73dace12966977dc439442ef 100644
|
| --- a/content/public/common/common_param_traits.h
|
| +++ b/content/public/common/common_param_traits.h
|
| @@ -25,6 +25,10 @@
|
| #include "url/gurl.h"
|
| #include "url/origin.h"
|
|
|
| +#if defined(OS_WIN)
|
| +#include "base/win/win_util.h"
|
| +#endif
|
| +
|
| namespace content {
|
| class PageState;
|
| }
|
| @@ -81,8 +85,7 @@ struct ParamTraits<gfx::NativeWindow> {
|
| typedef gfx::NativeWindow param_type;
|
| static void Write(Message* m, const param_type& p) {
|
| #if defined(OS_WIN)
|
| - // HWNDs are always 32 bits on Windows, even on 64 bit systems.
|
| - m->WriteUInt32(reinterpret_cast<uint32>(p));
|
| + m->WriteUInt32(base::win::HandleToUint32(p));
|
| #else
|
| m->WriteData(reinterpret_cast<const char*>(&p), sizeof(p));
|
| #endif
|
|
|