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

Unified Diff: content/browser/device_orientation/provider.h

Issue 10383262: RefCounted types should not have public destructors, delegate cleanup (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Make win bot happy Created 8 years, 6 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/device_orientation/provider.h
diff --git a/content/browser/device_orientation/provider.h b/content/browser/device_orientation/provider.h
index a44128cf462a71d3094b331b6824c749eb6f7a1d..b93682e135ff74194c115dc3bfd21beb80174cc6 100644
--- a/content/browser/device_orientation/provider.h
+++ b/content/browser/device_orientation/provider.h
@@ -20,6 +20,9 @@ class CONTENT_EXPORT Provider : public base::RefCountedThreadSafe<Provider> {
// An Observer must not synchronously call Provider::RemoveObserver
// or Provider::AddObserver when this is called.
virtual void OnOrientationUpdate(const Orientation& orientation) = 0;
+
+ protected:
+ virtual ~Observer() {}
};
// Returns a pointer to the singleton instance of this class.
« no previous file with comments | « chrome/test/automation/javascript_execution_controller.cc ('k') | content/browser/download/download_item_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698