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

Unified Diff: ppapi/shared_impl/resource.h

Issue 1004593005: base::RefCounted now DCHECKs when referenced from multiple threads. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix lots of tests using UnsafeRefCounted. Created 5 years, 9 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: ppapi/shared_impl/resource.h
diff --git a/ppapi/shared_impl/resource.h b/ppapi/shared_impl/resource.h
index 999ece30fd0e75cccbabd4255ce37a5942c60a93..28e4143a4ee0c445ee1fb55e3a35d15d5b0cc180 100644
--- a/ppapi/shared_impl/resource.h
+++ b/ppapi/shared_impl/resource.h
@@ -118,7 +118,8 @@ FOR_ALL_PPAPI_RESOURCE_APIS(DECLARE_RESOURCE_CLASS)
// cases.
enum ResourceObjectType { OBJECT_IS_IMPL, OBJECT_IS_PROXY };
-class PPAPI_SHARED_EXPORT Resource : public base::RefCounted<Resource> {
+// TODO(mgiuca): Avoid using UnsafeRefCounted. http://crbug.com/469952.
+class PPAPI_SHARED_EXPORT Resource : public base::UnsafeRefCounted<Resource> {
public:
// Constructor for impl and non-proxied, instance-only objects.
//

Powered by Google App Engine
This is Rietveld 408576698