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

Unified Diff: content/public/test/test_utils.h

Issue 2686873003: Make MessageLoopRunner be 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: content/public/test/test_utils.h
diff --git a/content/public/test/test_utils.h b/content/public/test/test_utils.h
index 6a3ab909d4cf6164d828a197e9a3c4b635fbe291..29f5965db9767ac191f87bf7e01ee5ba0176de60 100644
--- a/content/public/test/test_utils.h
+++ b/content/public/test/test_utils.h
@@ -100,7 +100,7 @@ bool RegisterJniForTesting(JNIEnv* env);
// GetDeferredQuitTaskForRunLoop directly.
// If you found a case where base::RunLoop is inconvenient or can not be used at
// all, please post details in a comment on https://crbug.com/668707.
-class MessageLoopRunner : public base::RefCounted<MessageLoopRunner> {
+class MessageLoopRunner : public base::RefCountedThreadSafe<MessageLoopRunner> {
public:
enum class QuitMode {
// Message loop stops after finishing the current task.
@@ -129,7 +129,7 @@ class MessageLoopRunner : public base::RefCounted<MessageLoopRunner> {
bool loop_running() const { return loop_running_; }
private:
- friend class base::RefCounted<MessageLoopRunner>;
+ friend class base::RefCountedThreadSafe<MessageLoopRunner>;
~MessageLoopRunner();
QuitMode quit_mode_;
« 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