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

Issue 2062393002: [battor agent] Make BattOr agent block until the BattOrAgent is created (Closed)

Created:
4 years, 6 months ago by charliea (OOO until 10-5)
Modified:
4 years, 6 months ago
Reviewers:
aschulman
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[battor agent] Make BattOr agent block until the BattOrAgent is created This fixes a crash that would be triggered when a command was sent to the agent very quickly after it started. In this case, battor_agent_bin would try to use the BattOrAgent before it was initialized, resulting in a segfault. BUG=620010 Committed: https://crrev.com/52328d3bf192548208dd14181f76dc63ba2b7512 Cr-Commit-Position: refs/heads/master@{#399906}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Add comment about why sync is necessary #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -2 lines) Patch
M tools/battor_agent/battor_agent_bin.cc View 1 3 chunks +12 lines, -2 lines 0 comments Download

Messages

Total messages: 11 (5 generated)
charliea (OOO until 10-5)
4 years, 6 months ago (2016-06-15 14:20:49 UTC) #3
aschulman
LGTM, w/nit https://codereview.chromium.org/2062393002/diff/20001/tools/battor_agent/battor_agent_bin.cc File tools/battor_agent/battor_agent_bin.cc (right): https://codereview.chromium.org/2062393002/diff/20001/tools/battor_agent/battor_agent_bin.cc#newcode145 tools/battor_agent/battor_agent_bin.cc:145: base::WaitableEvent::InitialState::NOT_SIGNALED); I'd like to see a comment ...
4 years, 6 months ago (2016-06-15 14:51: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/2062393002/40001
4 years, 6 months ago (2016-06-15 15:09:31 UTC) #7
commit-bot: I haz the power
Committed patchset #2 (id:40001)
4 years, 6 months ago (2016-06-15 15:55:49 UTC) #8
commit-bot: I haz the power
CQ bit was unchecked
4 years, 6 months ago (2016-06-15 15:55:51 UTC) #9
commit-bot: I haz the power
4 years, 6 months ago (2016-06-15 15:56:59 UTC) #11
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/52328d3bf192548208dd14181f76dc63ba2b7512
Cr-Commit-Position: refs/heads/master@{#399906}

Powered by Google App Engine
This is Rietveld 408576698