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

Issue 23514018: Add Reset to ScopedClosureRunner. (Closed)

Created:
7 years, 3 months ago by Avi (use Gerrit)
Modified:
7 years, 3 months ago
Reviewers:
awong, Cait (Slow)
CC:
chromium-reviews, erikwright+watch_chromium.org
Visibility:
Public.

Description

Move ScopedClosureRunner to callback_helpers, add Reset. BUG=none TEST=none TBR=ben@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=220473

Patch Set 1 #

Total comments: 1

Patch Set 2 : parnoia #

Patch Set 3 : movin' right along #

Patch Set 4 : and a default constructor for Cait #

Patch Set 5 : more reset #

Patch Set 6 : ignore_result #

Total comments: 1

Patch Set 7 : var tweak #

Patch Set 8 : android fix #

Patch Set 9 : android fix 2 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+111 lines, -115 lines) Patch
M base/base.gyp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M base/base.gypi View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M base/bind_helpers.h View 1 2 2 chunks +0 lines, -19 lines 0 comments Download
M base/bind_helpers.cc View 1 2 1 chunk +0 lines, -15 lines 0 comments Download
M base/bind_helpers_unittest.cc View 1 2 1 chunk +0 lines, -39 lines 0 comments Download
M base/callback_helpers.h View 1 2 3 4 2 chunks +20 lines, -0 lines 0 comments Download
A + base/callback_helpers.cc View 1 2 3 4 2 chunks +16 lines, -3 lines 0 comments Download
A + base/callback_helpers_unittest.cc View 1 2 3 4 5 6 2 chunks +25 lines, -3 lines 0 comments Download
M base/mac/bind_objc_block_unittest.mm View 1 2 1 chunk +1 line, -1 line 0 comments Download
M base/prefs/pref_member.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M base/test/unit_test_launcher.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/android/ssl_client_certificate_request.cc View 1 2 3 4 5 6 7 8 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/common/cancelable_task_tracker.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chromeos/dbus/blocking_method_caller.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M cloud_print/service/win/cloud_print_service.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M cloud_print/service/win/cloud_print_service_config.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/gpu/gpu_process_host.cc View 1 2 3 4 5 5 chunks +6 lines, -5 lines 0 comments Download
M content/browser/renderer_host/media/web_contents_video_capture_device.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.cc View 1 2 3 4 5 6 7 4 chunks +7 lines, -6 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.cc View 1 2 3 4 5 5 chunks +6 lines, -5 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac.mm View 1 2 3 4 5 3 chunks +4 lines, -3 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_win.cc View 1 2 3 4 5 3 chunks +4 lines, -3 lines 0 comments Download
M content/common/sandbox_linux.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M net/cert/cert_verify_proc_unittest.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M remoting/client/rectangle_update_decoder.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M remoting/protocol/client_control_dispatcher.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M remoting/protocol/host_control_dispatcher.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M remoting/protocol/host_event_dispatcher.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M tools/android/forwarder2/device_controller.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M tools/android/memdump/memdump.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M ui/surface/accelerated_surface_win.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 17 (0 generated)
Avi (use Gerrit)
ajwong: review caitkp: so you don't have to do that horrible scoped_ptr<ScopedClosureRunner> bit in your ...
7 years, 3 months ago (2013-08-29 18:46:02 UTC) #1
awong
https://codereview.chromium.org/23514018/diff/1/base/bind_helpers.cc File base/bind_helpers.cc (right): https://codereview.chromium.org/23514018/diff/1/base/bind_helpers.cc#newcode24 base/bind_helpers.cc:24: if (!closure_.is_null()) Maybe follow the Release() pattern of caching ...
7 years, 3 months ago (2013-08-29 18:57:12 UTC) #2
Avi (use Gerrit)
OK, then.
7 years, 3 months ago (2013-08-29 19:01:30 UTC) #3
awong
On 2013/08/29 19:01:30, Avi wrote: > OK, then. LGTM Also occurred to me that this ...
7 years, 3 months ago (2013-08-29 19:13:36 UTC) #4
Avi (use Gerrit)
Let's do it then.
7 years, 3 months ago (2013-08-29 19:41:14 UTC) #5
Cait (Slow)
Thanks -- this definitely makes things less clunky :) I think we also need to ...
7 years, 3 months ago (2013-08-29 19:41:20 UTC) #6
Avi (use Gerrit)
Cait, you're right. Have a default constructor!
7 years, 3 months ago (2013-08-29 19:47:11 UTC) #7
Avi (use Gerrit)
BTW, one more Reset, so that if someone needs to deregister before the end of ...
7 years, 3 months ago (2013-08-29 19:55:13 UTC) #8
awong
LGTM w/nit https://codereview.chromium.org/23514018/diff/26001/base/callback_helpers_unittest.cc File base/callback_helpers_unittest.cc (right): https://codereview.chromium.org/23514018/diff/26001/base/callback_helpers_unittest.cc#newcode51 base/callback_helpers_unittest.cc:51: int run_count = 0; Call this run_count_3?
7 years, 3 months ago (2013-08-29 21:00:39 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/avi@chromium.org/23514018/32001
7 years, 3 months ago (2013-08-29 21:09:42 UTC) #10
commit-bot: I haz the power
Failed to request the patch to try. Please note that binary files are still unsupported ...
7 years, 3 months ago (2013-08-29 21:09:46 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/avi@chromium.org/23514018/35001
7 years, 3 months ago (2013-08-29 21:11:30 UTC) #12
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 3 months ago (2013-08-29 21:46:31 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/avi@chromium.org/23514018/2001
7 years, 3 months ago (2013-08-29 22:12:59 UTC) #14
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 3 months ago (2013-08-29 22:53:38 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/avi@chromium.org/23514018/63001
7 years, 3 months ago (2013-08-29 22:54:05 UTC) #16
commit-bot: I haz the power
7 years, 3 months ago (2013-08-30 02:04:06 UTC) #17
Message was sent while issue was closed.
Change committed as 220473

Powered by Google App Engine
This is Rietveld 408576698