Chromium Code Reviews| 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) |
|
brettw
2015/11/18 19:24:16
Ditto
|
| +#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, |