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

Unified Diff: content/browser/speech/speech_recognition_manager_impl.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: content/browser/speech/speech_recognition_manager_impl.h
diff --git a/content/browser/speech/speech_recognition_manager_impl.h b/content/browser/speech/speech_recognition_manager_impl.h
index 732426c49196f6830665a827940eae2f85b30c1f..45480e135c9ef8c2df4c2d479efb67cec1ee8f26 100644
--- a/content/browser/speech/speech_recognition_manager_impl.h
+++ b/content/browser/speech/speech_recognition_manager_impl.h
@@ -90,8 +90,9 @@ class CONTENT_EXPORT SpeechRecognitionManagerImpl :
protected:
// BrowserMainLoop is the only one allowed to istantiate and free us.
+ // Needed for dtor.
Jeffrey Yasskin 2012/11/28 06:07:18 This should be 1 line down.
awong 2012/11/28 10:20:35 Done.
friend class BrowserMainLoop;
- friend class scoped_ptr<SpeechRecognitionManagerImpl>; // Needed for dtor.
+ friend struct base::DefaultDeleter<SpeechRecognitionManagerImpl>;
SpeechRecognitionManagerImpl();
virtual ~SpeechRecognitionManagerImpl();

Powered by Google App Engine
This is Rietveld 408576698