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

Unified Diff: webkit/media/web_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 | « webkit/media/web_data_source_factory.h ('k') | webkit/media/webmediaplayer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/media/web_data_source_factory.cc
diff --git a/webkit/media/web_data_source_factory.cc b/webkit/media/web_data_source_factory.cc
index 4df0dcf8adc1bb559c54c8579e27a70d02c621da..fd99d670917612dfff66233ab025b7d4d6d064da 100644
--- a/webkit/media/web_data_source_factory.cc
+++ b/webkit/media/web_data_source_factory.cc
@@ -50,9 +50,9 @@ WebDataSourceFactory::WebDataSourceFactory(
WebDataSourceFactory::~WebDataSourceFactory() {}
-media::DataSourceFactory* WebDataSourceFactory::Clone() const {
- return new WebDataSourceFactory(render_loop_, frame_, media_log_,
- factory_function_, build_observer_);
+scoped_ptr<media::DataSourceFactory> WebDataSourceFactory::Clone() const {
+ return scoped_ptr<media::DataSourceFactory>(new WebDataSourceFactory(
+ render_loop_, frame_, media_log_, factory_function_, build_observer_));
}
bool WebDataSourceFactory::AllowRequests() const {
« no previous file with comments | « webkit/media/web_data_source_factory.h ('k') | webkit/media/webmediaplayer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698