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

Unified Diff: content/public/common/common_param_traits.h

Issue 1422773008: Fixing remaining VC++ 2015 64-bit build breaks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removing unneeded include Created 5 years 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
« no previous file with comments | « content/common/sandbox_win.cc ('k') | content/shell/browser/shell_web_contents_view_delegate_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « content/common/sandbox_win.cc ('k') | content/shell/browser/shell_web_contents_view_delegate_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698