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

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

Issue 23441047: Fix race condition in DataFetcherSharedMemoryBase (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 3 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: content/browser/device_orientation/data_fetcher_shared_memory_mac.cc
diff --git a/content/browser/device_orientation/data_fetcher_shared_memory_mac.cc b/content/browser/device_orientation/data_fetcher_shared_memory_mac.cc
index 5c958cb27505c28643374bfd9efe20a453d635a6..54793837d75e1179168fc61cd4fed394b975f11e 100644
--- a/content/browser/device_orientation/data_fetcher_shared_memory_mac.cc
+++ b/content/browser/device_orientation/data_fetcher_shared_memory_mac.cc
@@ -115,10 +115,8 @@ bool DataFetcherSharedMemory::IsPolling() const {
return true;
}
-bool DataFetcherSharedMemory::Start(ConsumerType consumer_type) {
+bool DataFetcherSharedMemory::Start(ConsumerType consumer_type, void* buffer) {
DCHECK(base::MessageLoop::current() == GetPollingMessageLoop());
-
- void* buffer = GetSharedMemoryBuffer(consumer_type);
DCHECK(buffer);
switch (consumer_type) {
« no previous file with comments | « content/browser/device_orientation/data_fetcher_shared_memory_default.cc ('k') | tools/valgrind/tsan/suppressions.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698