| Index: webrtc/modules/desktop_capture/win/desktop.cc
|
| diff --git a/webrtc/modules/desktop_capture/win/desktop.cc b/webrtc/modules/desktop_capture/win/desktop.cc
|
| index 97bbfb717b106728694c45b4b3f57abb8debd48e..b68099010837517b9d35c6ac1ea7bf7f2783664b 100644
|
| --- a/webrtc/modules/desktop_capture/win/desktop.cc
|
| +++ b/webrtc/modules/desktop_capture/win/desktop.cc
|
| @@ -12,8 +12,6 @@
|
|
|
| #include <vector>
|
|
|
| -#include "webrtc/system_wrappers/include/logging.h"
|
| -
|
| namespace webrtc {
|
|
|
| Desktop::Desktop(HDESK desktop, bool own) : desktop_(desktop), own_(own) {
|
| @@ -22,8 +20,6 @@ Desktop::Desktop(HDESK desktop, bool own) : desktop_(desktop), own_(own) {
|
| Desktop::~Desktop() {
|
| if (own_ && desktop_ != NULL) {
|
| if (!::CloseDesktop(desktop_)) {
|
| - LOG(LS_ERROR) << "Failed to close the owned desktop handle: "
|
| - << GetLastError();
|
| }
|
| }
|
| }
|
| @@ -41,7 +37,6 @@ bool Desktop::GetName(std::wstring* desktop_name_out) const {
|
| std::vector<WCHAR> buffer(length);
|
| if (!GetUserObjectInformationW(desktop_, UOI_NAME, &buffer[0],
|
| length * sizeof(WCHAR), &length)) {
|
| - LOG(LS_ERROR) << "Failed to query the desktop name: " << GetLastError();
|
| return false;
|
| }
|
|
|
| @@ -63,8 +58,6 @@ bool Desktop::IsSame(const Desktop& other) const {
|
|
|
| bool Desktop::SetThreadDesktop() const {
|
| if (!::SetThreadDesktop(desktop_)) {
|
| - LOG(LS_ERROR) << "Failed to assign the desktop to the current thread: "
|
| - << GetLastError();
|
| return false;
|
| }
|
|
|
| @@ -78,8 +71,6 @@ Desktop* Desktop::GetDesktop(const WCHAR* desktop_name) {
|
| DESKTOP_SWITCHDESKTOP | GENERIC_WRITE;
|
| HDESK desktop = OpenDesktop(desktop_name, 0, FALSE, desired_access);
|
| if (desktop == NULL) {
|
| - LOG(LS_ERROR) << "Failed to open the desktop '" << desktop_name << "': "
|
| - << GetLastError();
|
| return NULL;
|
| }
|
|
|
| @@ -98,9 +89,6 @@ Desktop* Desktop::GetInputDesktop() {
|
| Desktop* Desktop::GetThreadDesktop() {
|
| HDESK desktop = ::GetThreadDesktop(GetCurrentThreadId());
|
| if (desktop == NULL) {
|
| - LOG(LS_ERROR) << "Failed to retrieve the handle of the desktop assigned to "
|
| - "the current thread: "
|
| - << GetLastError();
|
| return NULL;
|
| }
|
|
|
|
|