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

Unified Diff: remoting/host/win/host_service.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/win/elevated_controller.cc ('k') | remoting/host/win/launch_process_with_token.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/win/host_service.cc
diff --git a/remoting/host/win/host_service.cc b/remoting/host/win/host_service.cc
index 8a9ff9e4910d5fa55dced4a82cf50d53484b7fb6..2fe29432c851e4f6b3f95f8c0fc52fe4549816be 100644
--- a/remoting/host/win/host_service.cc
+++ b/remoting/host/win/host_service.cc
@@ -224,8 +224,7 @@ int HostService::RunAsService() {
};
if (!StartServiceCtrlDispatcherW(dispatch_table)) {
- LOG_GETLASTERROR(ERROR)
- << "Failed to connect to the service control manager";
+ PLOG(ERROR) << "Failed to connect to the service control manager";
return kInitializationFailed;
}
@@ -247,8 +246,7 @@ void HostService::RunAsServiceImpl() {
service_status_handle_ = RegisterServiceCtrlHandlerExW(
kWindowsServiceName, &HostService::ServiceControlHandler, this);
if (service_status_handle_ == 0) {
- LOG_GETLASTERROR(ERROR)
- << "Failed to register the service control handler";
+ PLOG(ERROR) << "Failed to register the service control handler";
return;
}
@@ -262,7 +260,7 @@ void HostService::RunAsServiceImpl() {
SERVICE_ACCEPT_SESSIONCHANGE;
service_status.dwWin32ExitCode = kSuccessExitCode;
if (!SetServiceStatus(service_status_handle_, &service_status)) {
- LOG_GETLASTERROR(ERROR)
+ PLOG(ERROR)
<< "Failed to report service status to the service control manager";
return;
}
@@ -290,7 +288,7 @@ void HostService::RunAsServiceImpl() {
service_status.dwCurrentState = SERVICE_STOPPED;
service_status.dwControlsAccepted = 0;
if (!SetServiceStatus(service_status_handle_, &service_status)) {
- LOG_GETLASTERROR(ERROR)
+ PLOG(ERROR)
<< "Failed to report service status to the service control manager";
return;
}
@@ -317,8 +315,7 @@ int HostService::RunInConsole() {
// Subscribe to Ctrl-C and other console events.
if (!SetConsoleCtrlHandler(&HostService::ConsoleControlHandler, TRUE)) {
- LOG_GETLASTERROR(ERROR)
- << "Failed to set console control handler";
+ PLOG(ERROR) << "Failed to set console control handler";
return result;
}
@@ -326,8 +323,7 @@ int HostService::RunInConsole() {
base::win::MessageWindow window;
if (!window.Create(base::Bind(&HostService::HandleMessage,
base::Unretained(this)))) {
- LOG_GETLASTERROR(ERROR)
- << "Failed to create the session notification window";
+ PLOG(ERROR) << "Failed to create the session notification window";
goto cleanup;
}
« no previous file with comments | « remoting/host/win/elevated_controller.cc ('k') | remoting/host/win/launch_process_with_token.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698