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

Unified Diff: remoting/host/win/launch_process_with_token.cc

Issue 1547473005: Switch to standard integer types in remoting/host/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « remoting/host/win/launch_process_with_token.h ('k') | remoting/host/win/rdp_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/win/launch_process_with_token.cc
diff --git a/remoting/host/win/launch_process_with_token.cc b/remoting/host/win/launch_process_with_token.cc
index c0ee4b89e5f73fd6aa86410eb9bccae7f576b565..27689ad52b0fb5f37b603db250661ae1fba0ff89 100644
--- a/remoting/host/win/launch_process_with_token.cc
+++ b/remoting/host/win/launch_process_with_token.cc
@@ -5,6 +5,7 @@
#include "remoting/host/win/launch_process_with_token.h"
#include <windows.h>
+#include <stddef.h>
#include <winternl.h>
#include <limits>
@@ -52,7 +53,7 @@ void CloseHandlesAndTerminateProcess(PROCESS_INFORMATION* process_information) {
}
// Connects to the executor server corresponding to |session_id|.
-bool ConnectToExecutionServer(uint32 session_id,
+bool ConnectToExecutionServer(uint32_t session_id,
base::win::ScopedHandle* pipe_out) {
base::string16 pipe_name;
@@ -369,7 +370,7 @@ bool SendCreateProcessRequest(
// using the default (i.e. Winlogon) token. This routine relies on undocumented
// OS functionality and will likely not work on anything but XP or W2K3.
bool CreateRemoteSessionProcess(
- uint32 session_id,
+ uint32_t session_id,
const base::FilePath::StringType& application_name,
const base::CommandLine::StringType& command_line,
DWORD creation_flags,
@@ -408,7 +409,7 @@ base::LazyInstance<base::Lock>::Leaky g_inherit_handles_lock =
// Creates a copy of the current process token for the given |session_id| so
// it can be used to launch a process in that session.
-bool CreateSessionToken(uint32 session_id, ScopedHandle* token_out) {
+bool CreateSessionToken(uint32_t session_id, ScopedHandle* token_out) {
ScopedHandle session_token;
DWORD desired_access = TOKEN_ADJUST_DEFAULT | TOKEN_ADJUST_SESSIONID |
TOKEN_ASSIGN_PRIMARY | TOKEN_DUPLICATE | TOKEN_QUERY;
« no previous file with comments | « remoting/host/win/launch_process_with_token.h ('k') | remoting/host/win/rdp_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698