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

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

Issue 281223002: Removed LOG_GETLASTERROR and LOG_ERRNO macros. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Wed 05/14/2014 11:20:03.21 Created 6 years, 7 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/sas_injector_win.cc ('k') | remoting/host/setup/me2me_native_messaging_host.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 4ff65714f41718adb914c6a68ebe9440ee4e7b51..1f965cdacb670a9a3c4e254dcf95309372cae192 100644
--- a/remoting/host/setup/daemon_controller_delegate_win.cc
+++ b/remoting/host/setup/daemon_controller_delegate_win.cc
@@ -94,8 +94,7 @@ DWORD OpenService(ScopedScHandle* service_out) {
SC_MANAGER_CONNECT | SC_MANAGER_ENUMERATE_SERVICE));
if (!scmanager.IsValid()) {
DWORD error = GetLastError();
- LOG_GETLASTERROR(ERROR)
- << "Failed to connect to the service control manager";
+ PLOG(ERROR) << "Failed to connect to the service control manager";
return error;
}
@@ -104,8 +103,8 @@ DWORD OpenService(ScopedScHandle* service_out) {
if (!service.IsValid()) {
DWORD error = GetLastError();
if (error != ERROR_SERVICE_DOES_NOT_EXIST) {
- LOG_GETLASTERROR(ERROR)
- << "Failed to open to the '" << kWindowsServiceName << "' service";
+ PLOG(ERROR) << "Failed to open to the '" << kWindowsServiceName
+ << "' service";
}
return error;
}
@@ -157,9 +156,8 @@ DaemonController::State DaemonControllerDelegateWin::GetState() {
if (::QueryServiceStatus(service, &status)) {
return ConvertToDaemonState(status.dwCurrentState);
} else {
- LOG_GETLASTERROR(ERROR)
- << "Failed to query the state of the '" << kWindowsServiceName
- << "' service";
+ PLOG(ERROR) << "Failed to query the state of the '"
+ << kWindowsServiceName << "' service";
return DaemonController::STATE_UNKNOWN;
}
break;
« no previous file with comments | « remoting/host/sas_injector_win.cc ('k') | remoting/host/setup/me2me_native_messaging_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698