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

Unified Diff: chrome/app/chrome_watcher_command_line_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: More use of HandleToUint32 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: chrome/app/chrome_watcher_command_line_win.cc
diff --git a/chrome/app/chrome_watcher_command_line_win.cc b/chrome/app/chrome_watcher_command_line_win.cc
index 12b3e143629eb6beedcafb0913f5d818e67849dc..ea35dd56024c64fdc0834becaf92cacef2dc799f 100644
--- a/chrome/app/chrome_watcher_command_line_win.cc
+++ b/chrome/app/chrome_watcher_command_line_win.cc
@@ -14,6 +14,10 @@
#include "chrome/common/chrome_switches.h"
#include "content/public/common/content_switches.h"
+#if defined(OS_WIN)
+#include "base/win/win_util.h"
+#endif
+
namespace {
const char kOnIninitializedEventHandleSwitch[] = "on-initialized-event-handle";
@@ -24,7 +28,7 @@ void AppendHandleSwitch(const std::string& switch_name,
HANDLE handle,
base::CommandLine* command_line) {
command_line->AppendSwitchASCII(
- switch_name, base::UintToString(reinterpret_cast<uint32_t>(handle)));
+ switch_name, base::UintToString(base::win::HandleToUint32(handle)));
}
uint32_t ReadUintSwitch(const base::CommandLine& command_line,

Powered by Google App Engine
This is Rietveld 408576698