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

Unified Diff: remoting/host/setup/daemon_controller_delegate_win.cc

Issue 602763003: Remove implicit HANDLE conversions from remoting. (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 | « remoting/host/remoting_me2me_host.cc ('k') | remoting/host/win/chromoting_module.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/setup/daemon_controller_delegate_win.cc
diff --git a/remoting/host/setup/daemon_controller_delegate_win.cc b/remoting/host/setup/daemon_controller_delegate_win.cc
index 1f965cdacb670a9a3c4e254dcf95309372cae192..9ed446e99a01938bb8646790ca46627a20eab550 100644
--- a/remoting/host/setup/daemon_controller_delegate_win.cc
+++ b/remoting/host/setup/daemon_controller_delegate_win.cc
@@ -98,8 +98,8 @@ DWORD OpenService(ScopedScHandle* service_out) {
return error;
}
- ScopedScHandle service(
- ::OpenServiceW(scmanager, kWindowsServiceName, SERVICE_QUERY_STATUS));
+ ScopedScHandle service(::OpenServiceW(scmanager.Get(), kWindowsServiceName,
+ SERVICE_QUERY_STATUS));
if (!service.IsValid()) {
DWORD error = GetLastError();
if (error != ERROR_SERVICE_DOES_NOT_EXIST) {
@@ -153,7 +153,7 @@ DaemonController::State DaemonControllerDelegateWin::GetState() {
switch (error) {
case ERROR_SUCCESS: {
SERVICE_STATUS status;
- if (::QueryServiceStatus(service, &status)) {
+ if (::QueryServiceStatus(service.Get(), &status)) {
return ConvertToDaemonState(status.dwCurrentState);
} else {
PLOG(ERROR) << "Failed to query the state of the '"
« no previous file with comments | « remoting/host/remoting_me2me_host.cc ('k') | remoting/host/win/chromoting_module.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698