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

Unified Diff: media/filters/file_data_source_factory.cc

Issue 9015015: Take advantage of the new Pass() machinery on scoped_ptr{,_malloc}. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 11 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 | « media/filters/file_data_source_factory.h ('k') | media/filters/gpu_video_decoder.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/file_data_source_factory.cc
diff --git a/media/filters/file_data_source_factory.cc b/media/filters/file_data_source_factory.cc
index a2109a911841a143b41a0001ea86c1056932d18d..d0f4820ef6b64073ceb5a3504dba4d35d8ab87b6 100644
--- a/media/filters/file_data_source_factory.cc
+++ b/media/filters/file_data_source_factory.cc
@@ -31,8 +31,8 @@ void FileDataSourceFactory::Build(const std::string& url,
callback.Run(status, data_source);
}
-DataSourceFactory* FileDataSourceFactory::Clone() const {
- return new FileDataSourceFactory();
+scoped_ptr<DataSourceFactory> FileDataSourceFactory::Clone() const {
+ return scoped_ptr<DataSourceFactory>(new FileDataSourceFactory());
}
} // namespace media
« no previous file with comments | « media/filters/file_data_source_factory.h ('k') | media/filters/gpu_video_decoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698