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

Unified Diff: content/public/test/test_file_error_injector.cc

Issue 11458003: Remove scoped_refptr::release which is confusing and causes leaks. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: duh Created 8 years 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/public/test/test_file_error_injector.cc
diff --git a/content/public/test/test_file_error_injector.cc b/content/public/test/test_file_error_injector.cc
index 0414eeb25ee7148c297bee185c99ab06c7472854..71e6a764226f6abf3ffc796862018214b83a6808 100644
--- a/content/public/test/test_file_error_injector.cc
+++ b/content/public/test/test_file_error_injector.cc
@@ -313,7 +313,7 @@ TestFileErrorInjector::TestFileErrorInjector(
// This code is only used for browser_tests, so a
// DownloadManager is always a DownloadManagerImpl.
download_manager_(
- static_cast<DownloadManagerImpl*>(download_manager.release())) {
+ static_cast<DownloadManagerImpl*>(download_manager.get())) {
// Record the value of the pointer, for later validation.
created_factory_ =
new DownloadFileWithErrorsFactory(

Powered by Google App Engine
This is Rietveld 408576698