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

Unified Diff: content/browser/device_orientation/provider_unittest.cc

Issue 10846003: TSAN: Speculative fix for race errors in DeviceOrientationProviderTest. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 5 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/browser/device_orientation/provider_unittest.cc
===================================================================
--- content/browser/device_orientation/provider_unittest.cc (revision 149223)
+++ content/browser/device_orientation/provider_unittest.cc (working copy)
@@ -66,7 +66,8 @@
};
// Class for injecting test orientation data into the Provider.
-class MockOrientationFactory : public base::RefCounted<MockOrientationFactory> {
+class MockOrientationFactory
+ : public base::RefCountedThreadSafe<MockOrientationFactory> {
public:
MockOrientationFactory()
: is_failing_(false) {
@@ -98,7 +99,7 @@
}
private:
- friend class base::RefCounted<MockOrientationFactory>;
+ friend class base::RefCountedThreadSafe<MockOrientationFactory>;
~MockOrientationFactory() {
}
« 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