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

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 unittest Created 8 years, 2 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: 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 c5fb75e59424787592a2ad707219c28adddbd1bd..08e85a63b8b940258c55ea1e3e4957d5962ce72c 100644
--- a/content/browser/speech/speech_recognition_manager_impl.h
+++ b/content/browser/speech/speech_recognition_manager_impl.h
@@ -99,7 +99,10 @@ class CONTENT_EXPORT SpeechRecognitionManagerImpl :
protected:
// BrowserMainLoop is the only one allowed to istantiate and free us.
friend class content::BrowserMainLoop;
- friend class scoped_ptr<SpeechRecognitionManagerImpl>; // Needed for dtor.
+
+ // Needed for dtor.
+ friend struct base::DefaultDeleter<SpeechRecognitionManagerImpl>;
+
SpeechRecognitionManagerImpl();
virtual ~SpeechRecognitionManagerImpl();

Powered by Google App Engine
This is Rietveld 408576698