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

Unified Diff: media/video/video_encode_accelerator.cc

Issue 1445003002: Use std::default_delete as the default deleter for scoped_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: How many trial and errors before this builds on the Windows bots Created 5 years, 1 month 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/video/video_encode_accelerator.h ('k') | mojo/shell/data_pipe_peek.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/video/video_encode_accelerator.cc
diff --git a/media/video/video_encode_accelerator.cc b/media/video/video_encode_accelerator.cc
index dccd31d7bc329d6a34e3858a9ef98f83a749fd65..51a4a7bb9e56a2167ca960fb35b73730af5ef303 100644
--- a/media/video/video_encode_accelerator.cc
+++ b/media/video/video_encode_accelerator.cc
@@ -19,13 +19,11 @@ VideoEncodeAccelerator::SupportedProfile::~SupportedProfile() {
} // namespace media
-namespace base {
+namespace std {
-void DefaultDeleter<media::VideoEncodeAccelerator>::operator()(
- void* video_encode_accelerator) const {
- static_cast<media::VideoEncodeAccelerator*>(video_encode_accelerator)->
- Destroy();
+void default_delete<media::VideoEncodeAccelerator>::operator()(
+ media::VideoEncodeAccelerator* vea) const {
+ vea->Destroy();
}
-} // namespace base
-
+} // namespace std
« no previous file with comments | « media/video/video_encode_accelerator.h ('k') | mojo/shell/data_pipe_peek.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698