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

Unified Diff: remoting/host/win/wts_session_process_delegate.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/worker_process_launcher.cc ('k') | remoting/host/win/wts_terminal_monitor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/win/wts_session_process_delegate.cc
diff --git a/remoting/host/win/wts_session_process_delegate.cc b/remoting/host/win/wts_session_process_delegate.cc
index f19b37d68743ad4bac287fc183e9d60fa5808de1..65f79ff8b8036f116259aad93efcea6123d953c5 100644
--- a/remoting/host/win/wts_session_process_delegate.cc
+++ b/remoting/host/win/wts_session_process_delegate.cc
@@ -176,7 +176,7 @@ bool WtsSessionProcessDelegate::Core::Initialize(uint32 session_id) {
ScopedHandle job;
job.Set(CreateJobObject(NULL, NULL));
if (!job.IsValid()) {
- LOG_GETLASTERROR(ERROR) << "Failed to create a job object";
+ PLOG(ERROR) << "Failed to create a job object";
return false;
}
@@ -192,7 +192,7 @@ bool WtsSessionProcessDelegate::Core::Initialize(uint32 session_id) {
JobObjectExtendedLimitInformation,
&info,
sizeof(info))) {
- LOG_GETLASTERROR(ERROR) << "Failed to set limits on the job object";
+ PLOG(ERROR) << "Failed to set limits on the job object";
return false;
}
@@ -307,7 +307,7 @@ void WtsSessionProcessDelegate::Core::OnChannelConnected(int32 peer_pid) {
if (launch_elevated_) {
DWORD pid;
if (!get_named_pipe_client_pid_(pipe_, &pid)) {
- LOG_GETLASTERROR(ERROR) << "Failed to retrive PID of the client";
+ PLOG(ERROR) << "Failed to retrive PID of the client";
ReportFatalError();
return;
}
@@ -324,7 +324,7 @@ void WtsSessionProcessDelegate::Core::OnChannelConnected(int32 peer_pid) {
SYNCHRONIZE | PROCESS_DUP_HANDLE | PROCESS_QUERY_INFORMATION;
ScopedHandle worker_process(OpenProcess(desired_access, false, pid));
if (!worker_process.IsValid()) {
- LOG_GETLASTERROR(ERROR) << "Failed to open process " << pid;
+ PLOG(ERROR) << "Failed to open process " << pid;
ReportFatalError();
return;
}
@@ -408,15 +408,14 @@ void WtsSessionProcessDelegate::Core::DoLaunchProcess() {
if (launch_elevated_) {
if (!AssignProcessToJobObject(job_, worker_process)) {
- LOG_GETLASTERROR(ERROR)
- << "Failed to assign the worker to the job object";
+ PLOG(ERROR) << "Failed to assign the worker to the job object";
ReportFatalError();
return;
}
}
if (!ResumeThread(worker_thread)) {
- LOG_GETLASTERROR(ERROR) << "Failed to resume the worker thread";
+ PLOG(ERROR) << "Failed to resume the worker thread";
ReportFatalError();
return;
}
@@ -460,8 +459,7 @@ void WtsSessionProcessDelegate::Core::InitializeJob(
// Register to receive job notifications via the I/O thread's completion port.
if (!base::MessageLoopForIO::current()->RegisterJobObject(job->Get(), this)) {
- LOG_GETLASTERROR(ERROR)
- << "Failed to associate the job object with a completion port";
+ PLOG(ERROR) << "Failed to associate the job object with a completion port";
return;
}
@@ -521,7 +519,7 @@ void WtsSessionProcessDelegate::Core::ReportProcessLaunched(
desired_access,
FALSE,
0)) {
- LOG_GETLASTERROR(ERROR) << "Failed to duplicate a handle";
+ PLOG(ERROR) << "Failed to duplicate a handle";
ReportFatalError();
return;
}
« no previous file with comments | « remoting/host/win/worker_process_launcher.cc ('k') | remoting/host/win/wts_terminal_monitor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698