Index: content/browser/media/webrtc_getusermedia_browsertest.cc |
diff --git a/content/browser/media/webrtc_getusermedia_browsertest.cc b/content/browser/media/webrtc_getusermedia_browsertest.cc |
index 8af8f45621b1a52f052975c49c4d19a51432134d..9efa23e9b2911d0fa1ff6f17d9b6522043434ece 100644 |
--- a/content/browser/media/webrtc_getusermedia_browsertest.cc |
+++ b/content/browser/media/webrtc_getusermedia_browsertest.cc |
@@ -83,9 +83,11 @@ class WebRtcGetUserMediaBrowserTest: public WebRtcContentBrowserTest { |
void StartTracing() { |
CHECK(trace_log_ == NULL) << "Can only can start tracing once"; |
trace_log_ = base::debug::TraceLog::GetInstance(); |
+ base::debug::TraceOptions trace_options(base::debug::RECORD_UNTIL_FULL); |
+ trace_options.enable_sampling = true; |
trace_log_->SetEnabled(base::debug::CategoryFilter("video"), |
base::debug::TraceLog::RECORDING_MODE, |
- base::debug::TraceLog::ENABLE_SAMPLING); |
+ trace_options); |
// Check that we are indeed recording. |
EXPECT_EQ(trace_log_->GetNumTracesRecorded(), 1); |
} |