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

Issue 1090043002: Merge NaClIPCAdapter::set_resolve_file_token_callback() into the constructor (Closed)

Created:
5 years, 8 months ago by Yusuke Sato
Modified:
5 years, 8 months ago
Reviewers:
Mark Seaborn
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Merge NaClIPCAdapter::set_resolve_file_token_callback() into the constructor to ensure that the callback function is set before ConnectChannel() is called. This prevents a potential race condition that could occur if messages were pending when ipc_adapter->ConnectChannel() is called. TEST=git cl try, ARC still works, PNaCl demo still works BUG=nativeclient:3802 Committed: https://crrev.com/2f16fdd05314528ba83c7fdff61c442dc25f63e0 Cr-Commit-Position: refs/heads/master@{#325535}

Patch Set 1 #

Total comments: 4

Patch Set 2 : address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -32 lines) Patch
M components/nacl/loader/nacl_ipc_adapter.h View 1 3 chunks +17 lines, -17 lines 0 comments Download
M components/nacl/loader/nacl_ipc_adapter.cc View 1 chunk +3 lines, -1 line 0 comments Download
M components/nacl/loader/nacl_listener.cc View 1 3 chunks +16 lines, -14 lines 0 comments Download

Messages

Total messages: 9 (3 generated)
Yusuke Sato
Please take a look
5 years, 8 months ago (2015-04-16 20:37:49 UTC) #2
Mark Seaborn
Can you explain the potential race condition in the commit message, please? And say that ...
5 years, 8 months ago (2015-04-16 20:51:21 UTC) #3
Yusuke Sato
https://codereview.chromium.org/1090043002/diff/1/components/nacl/loader/nacl_ipc_adapter.h File components/nacl/loader/nacl_ipc_adapter.h (right): https://codereview.chromium.org/1090043002/diff/1/components/nacl/loader/nacl_ipc_adapter.h#newcode91 components/nacl/loader/nacl_ipc_adapter.h:91: // |resolve_file_token_cb| is a callback to be invoked for ...
5 years, 8 months ago (2015-04-16 21:25:03 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1090043002/20001
5 years, 8 months ago (2015-04-16 21:26:21 UTC) #7
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 8 months ago (2015-04-16 22:58:49 UTC) #8
commit-bot: I haz the power
5 years, 8 months ago (2015-04-16 22:59:53 UTC) #9
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/2f16fdd05314528ba83c7fdff61c442dc25f63e0
Cr-Commit-Position: refs/heads/master@{#325535}

Powered by Google App Engine
This is Rietveld 408576698