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

Unified Diff: content/test/webrtc_audio_device_test.cc

Issue 10299002: Stop refcounting URLRequestContext. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More fixes Created 8 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
Index: content/test/webrtc_audio_device_test.cc
diff --git a/content/test/webrtc_audio_device_test.cc b/content/test/webrtc_audio_device_test.cc
index c9e72ec65134f46a2f3848054b61e22dfda45cc5..496792d267b823ede353a361d12e19c1b8287f35 100644
--- a/content/test/webrtc_audio_device_test.cc
+++ b/content/test/webrtc_audio_device_test.cc
@@ -168,7 +168,7 @@ void WebRTCAudioDeviceTest::InitializeIOThread(const char* thread_name) {
audio_manager_.reset(media::AudioManager::Create());
// Populate our resource context.
- test_request_context_ = new TestURLRequestContext();
+ test_request_context_.reset(new TestURLRequestContext());
resource_context_->set_request_context(test_request_context_.get());
media_observer_.reset(new MockMediaObserver());
@@ -183,7 +183,7 @@ void WebRTCAudioDeviceTest::UninitializeIOThread() {
resource_context_.reset();
audio_manager_.reset();
- test_request_context_ = NULL;
+ test_request_context_.reset();
initialize_com_.reset();
}

Powered by Google App Engine
This is Rietveld 408576698