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

Issue 8221021: Modify WaitableEvent::Wait() to return void (Closed)

Created:
9 years, 2 months ago by Steve Block
Modified:
9 years, 2 months ago
CC:
chromium-reviews, ncarter (slow), idana, Raghu Simha, dpranke+watch-content_chromium.org, jam, joi+watch-content_chromium.org, darin-cc_chromium.org, brettw-cc_chromium.org, stuartmorgan+watch_chromium.org, tim (not reviewing)
Visibility:
Public.

Description

Modify WaitableEvent::Wait() to return void Currently, WaitableEvent::Wait() returns bool. However, the Windows implementation DCHECKs that the return value is true and the POSIX implementation can never return false. Also, all call sites that use the return value simply DCHECK that it's true. This change modifies the method to return void, adds a DCHECK in the POSIX implementation and updates call sites. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=104990

Patch Set 1 #

Patch Set 2 : Fix test #

Total comments: 1

Patch Set 3 : Fixed comment and style #

Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -52 lines) Patch
M base/synchronization/waitable_event.h View 1 2 1 chunk +2 lines, -3 lines 0 comments Download
M base/synchronization/waitable_event_posix.cc View 1 2 3 chunks +16 lines, -15 lines 0 comments Download
M base/synchronization/waitable_event_unittest.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M base/synchronization/waitable_event_win.cc View 1 chunk +1 line, -2 lines 0 comments Download
M base/threading/worker_pool_posix_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M base/threading/worker_pool_unittest.cc View 1 1 chunk +2 lines, -5 lines 0 comments Download
M chrome/browser/extensions/test_extension_prefs.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/net/cookie_policy_browsertest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/plugin_data_remover.cc View 1 chunk +1 line, -3 lines 0 comments Download
M chrome/browser/process_singleton_uitest.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/sync/glue/http_bridge.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/service/gaia/service_gaia_authenticator.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/in_process_webkit/indexed_db_key_utility_client.cc View 3 chunks +6 lines, -6 lines 0 comments Download
M net/base/keygen_handler_unittest.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M webkit/tools/test_shell/simple_resource_loader_bridge.cc View 1 2 chunks +2 lines, -4 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
Steve Block
Hi Brett, I noticed that the boolean return value of WaitableEvent::Wait() isn't really used. The ...
9 years, 2 months ago (2011-10-10 22:33:40 UTC) #1
Steve Block
Switching reviewer from brettw to willchan as brettw will soon be taking leave.
9 years, 2 months ago (2011-10-11 14:25:36 UTC) #2
willchan no longer on Chromium
LGTM http://codereview.chromium.org/8221021/diff/1001/base/synchronization/waitable_event.h File base/synchronization/waitable_event.h (right): http://codereview.chromium.org/8221021/diff/1001/base/synchronization/waitable_event.h#newcode77 base/synchronization/waitable_event.h:77: // was signaled, else false is returned to ...
9 years, 2 months ago (2011-10-11 15:04:54 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/steveblock@chromium.org/8221021/8001
9 years, 2 months ago (2011-10-11 15:20:13 UTC) #4
commit-bot: I haz the power
Presubmit check for 8221021-8001 failed and returned exit status 1. Running presubmit commit checks ...
9 years, 2 months ago (2011-10-11 15:20:23 UTC) #5
Steve Block
Adding hans and akalin for OWNERS
9 years, 2 months ago (2011-10-11 15:27:16 UTC) #6
hans
On 2011/10/11 15:27:16, Steve Block wrote: > Adding hans and akalin for OWNERS LGTM for ...
9 years, 2 months ago (2011-10-11 15:31:14 UTC) #7
akalin
On 2011/10/11 15:31:14, hans wrote: > On 2011/10/11 15:27:16, Steve Block wrote: > > Adding ...
9 years, 2 months ago (2011-10-11 19:01:35 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/steveblock@chromium.org/8221021/8001
9 years, 2 months ago (2011-10-12 00:09:25 UTC) #9
commit-bot: I haz the power
Try job failure for 8221021-8001 on mac_rel for step "update". http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=1625 Step "update" is always ...
9 years, 2 months ago (2011-10-12 00:23:29 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/steveblock@chromium.org/8221021/8001
9 years, 2 months ago (2011-10-12 00:27:47 UTC) #11
commit-bot: I haz the power
9 years, 2 months ago (2011-10-12 03:09:45 UTC) #12
Change committed as 104990

Powered by Google App Engine
This is Rietveld 408576698