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

Unified Diff: gpu/config/gpu_control_list.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: gpu/config/gpu_control_list.h
diff --git a/gpu/config/gpu_control_list.h b/gpu/config/gpu_control_list.h
index a5abf5236347bf0b6210c702265e4c427dd6103d..bd868eaa68999fc3f788f71714e0eba72cad53b4 100644
--- a/gpu/config/gpu_control_list.h
+++ b/gpu/config/gpu_control_list.h
@@ -244,8 +244,9 @@ class GPU_EXPORT GpuControlList {
typedef base::hash_map<std::string, int> FeatureMap;
+ // TODO(mgiuca): Avoid using UnsafeRefCounted. http://crbug.com/469952.
class GPU_EXPORT GpuControlListEntry
- : public base::RefCounted<GpuControlListEntry> {
+ : public base::UnsafeRefCounted<GpuControlListEntry> {
public:
// Constructs GpuControlListEntry from DictionaryValue loaded from json.
// Top-level entry must have an id number. Others are exceptions.
@@ -293,7 +294,7 @@ class GPU_EXPORT GpuControlList {
bool supports_feature_type_all) const;
private:
- friend class base::RefCounted<GpuControlListEntry>;
+ friend class base::UnsafeRefCounted<GpuControlListEntry>;
enum MultiGpuStyle {
kMultiGpuStyleOptimus,

Powered by Google App Engine
This is Rietveld 408576698