Index: content/browser/renderer_host/media/media_stream_manager.h |
diff --git a/content/browser/renderer_host/media/media_stream_manager.h b/content/browser/renderer_host/media/media_stream_manager.h |
index bb407cea0a373851c4a85a058f1fdd5b3730a0a1..9a8659682b52797824345b55bd6d35d681c4fcef 100644 |
--- a/content/browser/renderer_host/media/media_stream_manager.h |
+++ b/content/browser/renderer_host/media/media_stream_manager.h |
@@ -148,10 +148,12 @@ class CONTENT_EXPORT MediaStreamManager |
// Used by unit test to make sure fake devices are used instead of a real |
// devices, which is needed for server based testing. |
- // TODO(xians): Remove this hack since we can create our own |
- // MediaStreamManager in our unit tests. |
void UseFakeDevice(); |
+ // Call to have all GenerateStream calls from now on use fake devices instead |
+ // of real ones. This should NOT be used in production versions of Chrome. |
+ static void AlwaysUseFakeDevice(); |
+ |
// This object gets deleted on the UI thread after the IO thread has been |
// destroyed. So we need to know when IO thread is being destroyed so that |
// we can delete VideoCaptureManager and AudioInputDeviceManager. |
@@ -229,6 +231,9 @@ class CONTENT_EXPORT MediaStreamManager |
// managers on the right thread. |
MessageLoop* io_loop_; |
+ // Static members. |
+ static bool always_use_fake_devices_; |
+ |
DISALLOW_COPY_AND_ASSIGN(MediaStreamManager); |
}; |