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

Unified Diff: cloud_print/virtual_driver/win/port_monitor/port_monitor.cc

Issue 606443003: Remove implicit HANDLE conversions from cloud_print. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 months 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 | « cloud_print/virtual_driver/win/install/setup.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cloud_print/virtual_driver/win/port_monitor/port_monitor.cc
diff --git a/cloud_print/virtual_driver/win/port_monitor/port_monitor.cc b/cloud_print/virtual_driver/win/port_monitor/port_monitor.cc
index c41b80571b85add7e3fa5908b7e231058c73a2e5..26f7b3f457ac55aaa159583d4256ef4998d48df1 100644
--- a/cloud_print/virtual_driver/win/port_monitor/port_monitor.cc
+++ b/cloud_print/virtual_driver/win/port_monitor/port_monitor.cc
@@ -220,7 +220,7 @@ bool LaunchPrintDialog(const base::FilePath& xps_path,
command_line.AppendSwitchNative(switches::kCloudPrintFileType, kXpsMimeType);
command_line.AppendSwitchNative(switches::kCloudPrintJobTitle, job_title);
base::LaunchOptions options;
- options.as_user = primary_token_scoped;
+ options.as_user = primary_token_scoped.Get();
base::LaunchProcess(command_line, options, NULL);
return true;
}
@@ -246,7 +246,7 @@ void LaunchChromeDownloadPage() {
command_line.AppendArg(kChromeInstallUrl);
base::LaunchOptions options;
- options.as_user = token_scoped;
+ options.as_user = token_scoped.Get();
base::LaunchProcess(command_line, options, NULL);
}
@@ -264,7 +264,7 @@ bool ValidateCurrentUser() {
if (base::win::GetVersion() >= base::win::VERSION_VISTA) {
DWORD session_id = 0;
DWORD dummy;
- if (!GetTokenInformation(token_scoped,
+ if (!GetTokenInformation(token_scoped.Get(),
TokenSessionId,
reinterpret_cast<void *>(&session_id),
sizeof(DWORD),
« no previous file with comments | « cloud_print/virtual_driver/win/install/setup.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698