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

Unified Diff: remoting/host/daemon_process_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/curtain_mode_win.cc ('k') | remoting/host/desktop_session_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/daemon_process_win.cc
diff --git a/remoting/host/daemon_process_win.cc b/remoting/host/daemon_process_win.cc
index a03140dbb03cfefa68d5c070ab0f6b256d5901fe..205c9c40ba99ba86142391408e8550bac5a9178d 100644
--- a/remoting/host/daemon_process_win.cc
+++ b/remoting/host/daemon_process_win.cc
@@ -167,7 +167,7 @@ bool DaemonProcessWin::OnDesktopSessionAgentAttached(
0,
FALSE,
DUPLICATE_SAME_ACCESS)) {
- LOG_GETLASTERROR(ERROR) << "Failed to duplicate the desktop process handle";
+ PLOG(ERROR) << "Failed to duplicate the desktop process handle";
return false;
}
@@ -238,8 +238,7 @@ void DaemonProcessWin::DisableAutoStart() {
OpenSCManager(NULL, SERVICES_ACTIVE_DATABASE,
SC_MANAGER_CONNECT | SC_MANAGER_ENUMERATE_SERVICE));
if (!scmanager.IsValid()) {
- LOG_GETLASTERROR(INFO)
- << "Failed to connect to the service control manager";
+ PLOG(INFO) << "Failed to connect to the service control manager";
return;
}
@@ -247,8 +246,8 @@ void DaemonProcessWin::DisableAutoStart() {
ScopedScHandle service(
OpenService(scmanager, kWindowsServiceName, desired_access));
if (!service.IsValid()) {
- LOG_GETLASTERROR(INFO)
- << "Failed to open to the '" << kWindowsServiceName << "' service";
+ PLOG(INFO) << "Failed to open to the '" << kWindowsServiceName
+ << "' service";
return;
}
@@ -265,9 +264,8 @@ void DaemonProcessWin::DisableAutoStart() {
NULL,
NULL,
NULL)) {
- LOG_GETLASTERROR(INFO)
- << "Failed to change the '" << kWindowsServiceName
- << "'service start type to 'manual'";
+ PLOG(INFO) << "Failed to change the '" << kWindowsServiceName
+ << "'service start type to 'manual'";
}
}
« no previous file with comments | « remoting/host/curtain_mode_win.cc ('k') | remoting/host/desktop_session_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698