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

Unified Diff: extensions/browser/api/cast_channel/logger.h

Issue 2689483003: Make cast_channel::Logger RefCountedThreadSafe (Closed)
Patch Set: Created 3 years, 10 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/api/cast_channel/logger.h
diff --git a/extensions/browser/api/cast_channel/logger.h b/extensions/browser/api/cast_channel/logger.h
index 3453f541ce922d9f636ff8efe2b0be187c1f8d94..905ba8b8dc6bb5c24d250464ab0835ade6874b38 100644
--- a/extensions/browser/api/cast_channel/logger.h
+++ b/extensions/browser/api/cast_channel/logger.h
@@ -35,7 +35,7 @@ static const int kMaxEventsPerSocket = 2000;
// Logs information of each channel and sockets and exports the log as
// a blob. Logger is done on the IO thread.
-class Logger : public base::RefCounted<Logger> {
+class Logger : public base::RefCountedThreadSafe<Logger> {
public:
// |clock|: Clock used for generating timestamps for the events. Owned by
// this class.
@@ -92,7 +92,7 @@ class Logger : public base::RefCounted<Logger> {
LastErrors GetLastErrors(int channel_id) const;
private:
- friend class base::RefCounted<Logger>;
+ friend class base::RefCountedThreadSafe<Logger>;
~Logger();
struct AggregatedSocketEventLog {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698