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

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: Remove the dependency on CL 8968032 and point TODOs at the newly-filed bug. Created 8 years, 12 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: 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

Powered by Google App Engine
This is Rietveld 408576698