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

Unified Diff: content/browser/device_orientation/data_fetcher_shared_memory_android.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_android.cc
diff --git a/content/browser/device_orientation/data_fetcher_shared_memory_android.cc b/content/browser/device_orientation/data_fetcher_shared_memory_android.cc
index 7ca84ea2a41807bf37d1a9aa5c7f4d243686dc54..3f00c3d179feb7ce8941f1160a50a8d8d2479870 100644
--- a/content/browser/device_orientation/data_fetcher_shared_memory_android.cc
+++ b/content/browser/device_orientation/data_fetcher_shared_memory_android.cc
@@ -17,8 +17,7 @@ DataFetcherSharedMemory::DataFetcherSharedMemory() {
DataFetcherSharedMemory::~DataFetcherSharedMemory() {
}
-bool DataFetcherSharedMemory::Start(ConsumerType consumer_type) {
- void* buffer = GetSharedMemoryBuffer(consumer_type);
+bool DataFetcherSharedMemory::Start(ConsumerType consumer_type, void* buffer) {
DCHECK(buffer);
switch (consumer_type) {

Powered by Google App Engine
This is Rietveld 408576698