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

Unified Diff: media/capture/content/thread_safe_capture_oracle.cc

Issue 1418263006: Extend VideoCaptureDevice::Client::OnError() to have a tracked_objects::Location param. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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: media/capture/content/thread_safe_capture_oracle.cc
diff --git a/media/capture/content/thread_safe_capture_oracle.cc b/media/capture/content/thread_safe_capture_oracle.cc
index 22b1dcfc022fc235afad1dfc1ad7d232d2a8f9a5..bda73de6d5e115a6725a89ee82b159d53d2db486 100644
--- a/media/capture/content/thread_safe_capture_oracle.cc
+++ b/media/capture/content/thread_safe_capture_oracle.cc
@@ -145,10 +145,12 @@ void ThreadSafeCaptureOracle::Stop() {
client_.reset();
}
-void ThreadSafeCaptureOracle::ReportError(const std::string& reason) {
+void ThreadSafeCaptureOracle::ReportError(
+ const tracked_objects::Location& from_here,
+ const std::string& reason) {
base::AutoLock guard(lock_);
if (client_)
- client_->OnError(reason);
+ client_->OnError(from_here, reason);
}
void ThreadSafeCaptureOracle::DidCaptureFrame(

Powered by Google App Engine
This is Rietveld 408576698