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

Unified Diff: mojo/edk/system/ports/node.cc

Issue 2514553002: Mojo EDK: Work around Nexus 9 hardware bug (Closed)
Patch Set: . Created 4 years, 1 month 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 | « mojo/edk/system/message_pipe_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/system/ports/node.cc
diff --git a/mojo/edk/system/ports/node.cc b/mojo/edk/system/ports/node.cc
index 186e8aaad95795f6f608555a0d7c16d17a73db40..af8f0252af8c4bdc5264e938387384c83423790b 100644
--- a/mojo/edk/system/ports/node.cc
+++ b/mojo/edk/system/ports/node.cc
@@ -8,6 +8,7 @@
#include <utility>
+#include "base/atomicops.h"
#include "base/logging.h"
#include "base/memory/ref_counted.h"
#include "base/synchronization/lock.h"
@@ -804,6 +805,11 @@ scoped_refptr<Port> Node::GetPort_Locked(const PortName& port_name) {
if (iter == ports_.end())
return nullptr;
+#if defined(OS_ANDROID)
Torne 2016/11/18 15:37:57 You could use #if defined(OS_ANDROID) && defined(A
Ken Rockot(use gerrit already) 2016/11/18 15:49:28 Done
+ // Workaround for https://crbug.com/665869.
+ base::subtle::MemoryBarrier();
+#endif
+
return iter->second;
}
« no previous file with comments | « mojo/edk/system/message_pipe_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698