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

Unified Diff: content/browser/renderer_host/media/desktop_capture_device.cc

Issue 140633004: Reland CL to implement browser-side logging to WebRtc log. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: These are the changes that should fix crbug.com/338848 Created 6 years, 11 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: content/browser/renderer_host/media/desktop_capture_device.cc
diff --git a/content/browser/renderer_host/media/desktop_capture_device.cc b/content/browser/renderer_host/media/desktop_capture_device.cc
index 4c84918423d0ce812277a57300b7c4f1d588d96d..74ecd80fbb8db1b1fd20c4c93f56fd546f156c00 100644
--- a/content/browser/renderer_host/media/desktop_capture_device.cc
+++ b/content/browser/renderer_host/media/desktop_capture_device.cc
@@ -165,8 +165,9 @@ void DesktopCaptureDevice::Core::OnCaptureCompleted(
capture_in_progress_ = false;
if (!frame) {
- LOG(ERROR) << "Failed to capture a frame.";
- client_->OnError();
+ std::string log("Failed to capture a frame.");
+ LOG(ERROR) << log;
+ client_->OnError(log);
return;
}

Powered by Google App Engine
This is Rietveld 408576698