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

Unified Diff: webrtc/modules/desktop_capture/win/desktop.cc

Issue 2787263003: Delete all log messages depending on system_wrappers. (Closed)
Patch Set: Created 3 years, 9 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
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;
}
« no previous file with comments | « webrtc/modules/desktop_capture/win/d3d_device.cc ('k') | webrtc/modules/desktop_capture/win/dxgi_texture.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698