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

Unified Diff: content/common/sandbox_win.cc

Issue 1422773008: Fixing remaining VC++ 2015 64-bit build breaks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removing unnecessary #if defined(s) Created 5 years, 1 month 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 4e441bc7a95ea5812d2bcfe7d7ed54102dedde50..253ffb302866ecbde708d723678534b992fc46eb 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)
brettw 2015/11/18 19:24:16 Ditto
+#include "base/win/win_util.h"
+#endif
static sandbox::BrokerServices* g_broker_services = NULL;
static sandbox::TargetServices* g_target_services = NULL;
@@ -745,8 +748,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)));
}
}
}

Powered by Google App Engine
This is Rietveld 408576698