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

Unified Diff: media/base/audio_bus.h

Issue 11149006: Extend scoped_ptr to be closer to unique_ptr. Support custom deleters, and deleting arrays. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix reset() to not call deleter on NULL ptr_. Matches unique_ptr<> spec. Created 8 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
Index: media/base/audio_bus.h
diff --git a/media/base/audio_bus.h b/media/base/audio_bus.h
index 5ea4e08529800346d0dae77a19c322238f3d2d5d..d94ab38cec90c0195e7f473124edae86b7e58dcd 100644
--- a/media/base/audio_bus.h
+++ b/media/base/audio_bus.h
@@ -93,7 +93,7 @@ class MEDIA_EXPORT AudioBus {
void ZeroFramesPartial(int start_frame, int frames);
private:
- friend class scoped_ptr<AudioBus>;
+ friend struct base::DefaultDeleter<AudioBus>;
~AudioBus();
AudioBus(int channels, int frames);

Powered by Google App Engine
This is Rietveld 408576698