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

Unified Diff: remoting/host/sas_injector_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/local_input_monitor_win.cc ('k') | remoting/host/setup/daemon_controller_delegate_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/sas_injector_win.cc
diff --git a/remoting/host/sas_injector_win.cc b/remoting/host/sas_injector_win.cc
index 1a866f63f8a0a6487fa78e61b71ab5fc30aa8c75..c79ae723c2cc70077788aef89afdb550c009a18e 100644
--- a/remoting/host/sas_injector_win.cc
+++ b/remoting/host/sas_injector_win.cc
@@ -65,8 +65,7 @@ ScopedSoftwareSasPolicy::~ScopedSoftwareSasPolicy() {
LONG result = system_policy_.DeleteValue(kSoftwareSasValueName);
if (result != ERROR_SUCCESS) {
SetLastError(result);
- LOG_GETLASTERROR(ERROR)
- << "Failed to restore the software SAS generation policy";
+ PLOG(ERROR) << "Failed to restore the software SAS generation policy";
}
}
}
@@ -79,8 +78,7 @@ bool ScopedSoftwareSasPolicy::Apply() {
KEY_WOW64_64KEY);
if (result != ERROR_SUCCESS) {
SetLastError(result);
- LOG_GETLASTERROR(ERROR) << "Failed to open 'HKLM\\"
- << kSystemPolicyKeyName << "'";
+ PLOG(ERROR) << "Failed to open 'HKLM\\" << kSystemPolicyKeyName << "'";
return false;
}
@@ -92,8 +90,7 @@ bool ScopedSoftwareSasPolicy::Apply() {
kEnableSoftwareSasByServices);
if (result != ERROR_SUCCESS) {
SetLastError(result);
- LOG_GETLASTERROR(ERROR)
- << "Failed to enable software SAS generation by services";
+ PLOG(ERROR) << "Failed to enable software SAS generation by services";
return false;
} else {
restore_policy_ = true;
@@ -193,22 +190,20 @@ bool SasInjectorXp::InjectSas() {
scoped_ptr<webrtc::Desktop> winlogon_desktop(
webrtc::Desktop::GetDesktop(kWinlogonDesktopName));
if (!winlogon_desktop.get()) {
- LOG_GETLASTERROR(ERROR)
- << "Failed to open '" << kWinlogonDesktopName << "' desktop";
+ PLOG(ERROR) << "Failed to open '" << kWinlogonDesktopName << "' desktop";
return false;
}
webrtc::ScopedThreadDesktop desktop;
if (!desktop.SetThreadDesktop(winlogon_desktop.release())) {
- LOG_GETLASTERROR(ERROR)
- << "Failed to switch to '" << kWinlogonDesktopName << "' desktop";
+ PLOG(ERROR) << "Failed to switch to '" << kWinlogonDesktopName
+ << "' desktop";
return false;
}
HWND window = FindWindow(kSasWindowClassName, kSasWindowTitle);
if (!window) {
- LOG_GETLASTERROR(ERROR)
- << "Failed to find '" << kSasWindowTitle << "' window";
+ PLOG(ERROR) << "Failed to find '" << kSasWindowTitle << "' window";
return false;
}
@@ -216,8 +211,7 @@ bool SasInjectorXp::InjectSas() {
WM_HOTKEY,
0,
MAKELONG(MOD_ALT | MOD_CONTROL, VK_DELETE)) == 0) {
- LOG_GETLASTERROR(ERROR)
- << "Failed to post WM_HOTKEY message";
+ PLOG(ERROR) << "Failed to post WM_HOTKEY message";
return false;
}
« no previous file with comments | « remoting/host/local_input_monitor_win.cc ('k') | remoting/host/setup/daemon_controller_delegate_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698