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

Unified Diff: chrome/browser/media/media_stream_capture_indicator.cc

Issue 14070016: Fix sys tray baloon shown when extensions use getMediaStream(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/media/media_stream_capture_indicator.cc
diff --git a/chrome/browser/media/media_stream_capture_indicator.cc b/chrome/browser/media/media_stream_capture_indicator.cc
index fe582577b7cd8ada7c3bd0bce0c7e2e5e98ea57a..ea2298467be2bebe588ebc80b9c769ba44f221b5 100644
--- a/chrome/browser/media/media_stream_capture_indicator.cc
+++ b/chrome/browser/media/media_stream_capture_indicator.cc
@@ -171,8 +171,10 @@ int MediaStreamCaptureIndicator::WebContentsDeviceUsage::AddDevices(
stop_screen_capture_callback_ = close_callback;
} else if (content::IsAudioMediaType(it->type)) {
++audio_ref_count_;
+ incremented_audio_count = true;
} else if (content::IsVideoMediaType(it->type)) {
++video_ref_count_;
+ incremented_video_count = true;
} else {
NOTIMPLEMENTED();
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698