Fix data races on |SharedMemoryDataConsumerHandle::Context::notification_task_runner_|
commite1a55538db15f150f4195dde5c8598d9bcf998d9
authorhiroshige <hiroshige@chromium.org>
Thu, 16 Jul 2015 10:23:28 +0000 (16 03:23 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 16 Jul 2015 10:25:06 +0000 (16 10:25 +0000)
treee4cf18532783f7c9404e422ef8bf3eecefdf4df9
parent87eb706e38e0a5bc5eff542df02cf39c97309f3a
Fix data races on |SharedMemoryDataConsumerHandle::Context::notification_task_runner_|

Writes to |notification_task_runner_| are protected by |lock_| but reads to |notification_task_runner_| in NotifyInternal() and PostNotify() are not protected.
This CL fixes the races by adding locks.

BUG=480746

Review URL: https://codereview.chromium.org/1234213002

Cr-Commit-Position: refs/heads/master@{#339008}
content/child/shared_memory_data_consumer_handle.cc