summaryrefslogtreecommitdiffstats
path: root/chrome/installer/gcapi
diff options
context:
space:
mode:
authorrvargas <rvargas@chromium.org>2014-09-24 18:35:28 -0700
committerCommit bot <commit-bot@chromium.org>2014-09-25 01:35:52 +0000
commitd7743bab4d428ef413320f9e71ed08b62255573b (patch)
treef08b5108358dee383e7ba0c3bbc243a175920b43 /chrome/installer/gcapi
parentae685fa448164fef86b0b97f519ac2f81cc8b310 (diff)
downloadchromium_src-d7743bab4d428ef413320f9e71ed08b62255573b.zip
chromium_src-d7743bab4d428ef413320f9e71ed08b62255573b.tar.gz
chromium_src-d7743bab4d428ef413320f9e71ed08b62255573b.tar.bz2
Remove implicit HANDLE conversions from chrome.
BUG=416722 R=thestig@chromium.org Review URL: https://codereview.chromium.org/606473002 Cr-Commit-Position: refs/heads/master@{#296613}
Diffstat (limited to 'chrome/installer/gcapi')
-rw-r--r--chrome/installer/gcapi/gcapi.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/installer/gcapi/gcapi.cc b/chrome/installer/gcapi/gcapi.cc
index ce0d22a..ce03d85 100644
--- a/chrome/installer/gcapi/gcapi.cc
+++ b/chrome/installer/gcapi/gcapi.cc
@@ -478,7 +478,8 @@ BOOL __stdcall LaunchGoogleChrome() {
if (process_handle.IsValid()) {
HANDLE process_token = NULL;
HANDLE user_token = NULL;
- if (::OpenProcessToken(process_handle, TOKEN_DUPLICATE | TOKEN_QUERY,
+ if (::OpenProcessToken(process_handle.Get(),
+ TOKEN_DUPLICATE | TOKEN_QUERY,
&process_token) &&
::DuplicateTokenEx(process_token,
TOKEN_IMPERSONATE | TOKEN_QUERY |