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

Issue 11953112: Refactor: Simplify WaitableEventWatcher. (Closed)

Created:
7 years, 11 months ago by teravest
Modified:
7 years, 10 months ago
CC:
chromium-reviews, jam, sail+watch_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, markusheintz_, erikwright+watch_chromium.org, tfarina
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Refactor: Simplify WaitableEventWatcher. This change uses a callback instead of a delegate for specifying what should be called when a WaitableEvent occurs. This simplifies the class and gets rid of a workaround internal to the class to prevent name collision on "Delegate" inner classes. Tested (on linux and windows): ninja -C out/Debug chrome out/Debug/base_unittests --gtest_filter=*WaitableEventWatcherTest* BUG= Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=179987

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : Fixed on windows #

Total comments: 14

Patch Set 4 : #

Total comments: 6

Patch Set 5 : #

Patch Set 6 : Fix build error #

Patch Set 7 : Fix IPC test failure #

Unified diffs Side-by-side diffs Delta from patch set Stats (+112 lines, -159 lines) Patch
M base/synchronization/waitable_event_watcher.h View 1 2 3 4 3 chunks +21 lines, -71 lines 0 comments Download
M base/synchronization/waitable_event_watcher_posix.cc View 1 2 3 4 7 chunks +13 lines, -12 lines 0 comments Download
M base/synchronization/waitable_event_watcher_unittest.cc View 1 2 3 4 7 chunks +18 lines, -20 lines 0 comments Download
M base/synchronization/waitable_event_watcher_win.cc View 1 2 3 4 2 chunks +11 lines, -23 lines 0 comments Download
M chrome/browser/browsing_data/browsing_data_remover.h View 1 2 3 2 chunks +4 lines, -6 lines 0 comments Download
M chrome/browser/browsing_data/browsing_data_remover.cc View 1 2 3 4 1 chunk +5 lines, -1 line 0 comments Download
M content/browser/plugin_data_remover_impl_browsertest.cc View 1 2 3 4 5 3 chunks +6 lines, -4 lines 0 comments Download
M content/browser/plugin_service_impl.h View 1 2 3 2 chunks +2 lines, -5 lines 0 comments Download
M content/browser/plugin_service_impl.cc View 1 2 3 4 2 chunks +8 lines, -2 lines 0 comments Download
M ipc/ipc_sync_channel.h View 1 2 3 4 6 chunks +10 lines, -8 lines 0 comments Download
M ipc/ipc_sync_channel.cc View 1 2 3 4 5 6 6 chunks +14 lines, -7 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
teravest
7 years, 11 months ago (2013-01-25 19:33:37 UTC) #1
dmichael (off chromium)
https://codereview.chromium.org/11953112/diff/3001/base/synchronization/waitable_event_watcher.h File base/synchronization/waitable_event_watcher.h (right): https://codereview.chromium.org/11953112/diff/3001/base/synchronization/waitable_event_watcher.h#newcode81 base/synchronization/waitable_event_watcher.h:81: Callback<void(WaitableEvent*)>* callback); const Callback<...>&? https://codereview.chromium.org/11953112/diff/3001/base/synchronization/waitable_event_watcher.h#newcode104 base/synchronization/waitable_event_watcher.h:104: Callback<void(WaitableEvent*)>* callback() { ...
7 years, 11 months ago (2013-01-25 21:28:11 UTC) #2
tfarina
https://codereview.chromium.org/11953112/diff/3001/base/synchronization/waitable_event_watcher.h File base/synchronization/waitable_event_watcher.h (right): https://codereview.chromium.org/11953112/diff/3001/base/synchronization/waitable_event_watcher.h#newcode81 base/synchronization/waitable_event_watcher.h:81: Callback<void(WaitableEvent*)>* callback); a typedef would be helpful too. It ...
7 years, 11 months ago (2013-01-26 15:24:18 UTC) #3
dmichael (off chromium)
https://codereview.chromium.org/11953112/diff/3001/base/synchronization/waitable_event_watcher.h File base/synchronization/waitable_event_watcher.h (right): https://codereview.chromium.org/11953112/diff/3001/base/synchronization/waitable_event_watcher.h#newcode81 base/synchronization/waitable_event_watcher.h:81: Callback<void(WaitableEvent*)>* callback); On 2013/01/26 15:24:18, tfarina wrote: > a ...
7 years, 10 months ago (2013-01-28 16:54:10 UTC) #4
teravest
https://codereview.chromium.org/11953112/diff/3001/base/synchronization/waitable_event_watcher.h File base/synchronization/waitable_event_watcher.h (right): https://codereview.chromium.org/11953112/diff/3001/base/synchronization/waitable_event_watcher.h#newcode81 base/synchronization/waitable_event_watcher.h:81: Callback<void(WaitableEvent*)>* callback); On 2013/01/28 16:54:11, dmichael wrote: > On ...
7 years, 10 months ago (2013-01-28 17:10:55 UTC) #5
brettw
lgtm https://codereview.chromium.org/11953112/diff/9001/base/synchronization/waitable_event_watcher.h File base/synchronization/waitable_event_watcher.h (right): https://codereview.chromium.org/11953112/diff/9001/base/synchronization/waitable_event_watcher.h#newcode26 base/synchronization/waitable_event_watcher.h:26: typedef Callback<void(WaitableEvent*)> WaitableEventCallback; I think the typedef is ...
7 years, 10 months ago (2013-01-28 20:56:59 UTC) #6
tfarina
https://codereview.chromium.org/11953112/diff/9001/base/synchronization/waitable_event_watcher.h File base/synchronization/waitable_event_watcher.h (right): https://codereview.chromium.org/11953112/diff/9001/base/synchronization/waitable_event_watcher.h#newcode67 base/synchronization/waitable_event_watcher.h:67: #if defined(OS_WIN) for a possible future CL. Just an ...
7 years, 10 months ago (2013-01-28 21:06:10 UTC) #7
teravest
https://codereview.chromium.org/11953112/diff/9001/base/synchronization/waitable_event_watcher.h File base/synchronization/waitable_event_watcher.h (right): https://codereview.chromium.org/11953112/diff/9001/base/synchronization/waitable_event_watcher.h#newcode26 base/synchronization/waitable_event_watcher.h:26: typedef Callback<void(WaitableEvent*)> WaitableEventCallback; On 2013/01/28 20:56:59, brettw wrote: > ...
7 years, 10 months ago (2013-01-28 21:25:09 UTC) #8
dmichael (off chromium)
lgtm https://codereview.chromium.org/11953112/diff/9001/base/synchronization/waitable_event_watcher.h File base/synchronization/waitable_event_watcher.h (right): https://codereview.chromium.org/11953112/diff/9001/base/synchronization/waitable_event_watcher.h#newcode67 base/synchronization/waitable_event_watcher.h:67: #if defined(OS_WIN) On 2013/01/28 21:06:10, tfarina wrote: > ...
7 years, 10 months ago (2013-01-28 21:47:27 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/teravest@chromium.org/11953112/9003
7 years, 10 months ago (2013-01-28 22:13:58 UTC) #10
commit-bot: I haz the power
Failed to trigger a try job on linux_clang HTTP Error 400: Bad Request
7 years, 10 months ago (2013-01-28 22:29:53 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/teravest@chromium.org/11953112/6004
7 years, 10 months ago (2013-01-28 22:29:57 UTC) #12
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) ipc_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=93621
7 years, 10 months ago (2013-01-29 00:08:52 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/teravest@chromium.org/11953112/6004
7 years, 10 months ago (2013-01-31 15:36:12 UTC) #14
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) ipc_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=94704
7 years, 10 months ago (2013-01-31 16:25:48 UTC) #15
dmichael (off chromium)
I think you have a legitimate failure; you probably want to try ipc_tests locally and ...
7 years, 10 months ago (2013-01-31 17:34:49 UTC) #16
teravest1
Yeah, I spent some time this morning tracking it down. I was trying to see ...
7 years, 10 months ago (2013-01-31 17:37:07 UTC) #17
teravest
7 years, 10 months ago (2013-01-31 17:39:01 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/teravest@chromium.org/11953112/23007
7 years, 10 months ago (2013-01-31 17:44:31 UTC) #19
commit-bot: I haz the power
7 years, 10 months ago (2013-01-31 22:37:58 UTC) #20
Message was sent while issue was closed.
Change committed as 179987

Powered by Google App Engine
This is Rietveld 408576698