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

Issue 2726523002: Pass Callback to TaskRunner by value and consume it on invocation (1) (Closed)

Created:
3 years, 9 months ago by tzik
Modified:
3 years, 8 months ago
CC:
chromium-reviews, sadrul, qsr+mojo_chromium.org, vmpstr+watch_chromium.org, achuith+watch_chromium.org, blink-reviews, yzshen+watch_chromium.org, marq+watch_chromium.org, fdoray+watch_chromium.org, piman+watch_chromium.org, tracing+reviews_chromium.org, kinuko+watch, net-reviews_chromium.org, miu+watch_chromium.org, avayvod+watch_chromium.org, cbentzel+watch_chromium.org, robliao+watch_chromium.org, viettrungluu+watch_chromium.org, jam, abarth-chromium, jbauman+watch_chromium.org, darin-cc_chromium.org, halliwell+watch_chromium.org, darin (slow to review), gab+watch_chromium.org, xjz+watch_chromium.org, blink-worker-reviews_chromium.org, mlamouri+watch-content_chromium.org, alemate+watch_chromium.org, subresource-filter-reviews_chromium.org, imcheng+watch_chromium.org, jasonroberts+watch_google.com, feature-media-reviews_chromium.org, oshima+watch_chromium.org, kalyank, alokp+watch_chromium.org, cc-bugs_chromium.org, sdefresne+watch_chromium.org, hashimoto+watch_chromium.org, wfh+watch_chromium.org, pkl (ping after 24h if needed), Eugene But (OOO till 7-30), isheriff+watch_chromium.org, Aaron Boodman, chromoting-reviews_chromium.org, mac-reviews_chromium.org, noyau+watch_chromium.org, danakj+watch_chromium.org, scheduler-bugs_chromium.org, lcwu+watch_chromium.org, davemoore+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Pass Callback to TaskRunner by value and consume it on invocation This is a preparation CL for http://crrev.com/2637843002, which replaces the Callback parameter of TaskRunner::PostTask with OnceCallback. This one replaces the passed-by-const-ref Callback parameter of TaskRunner::PostTask() with pass-by-value. With the pass-by-const-ref manner as the old code does, we can't avoid leaving a reference to the callback object on the original thread. That is, the callback object may be destroyed either on the target thread or the original thread. That's problematic when a non-thread-safe object is bound to the callback. Pass-by-value and move() in this CL mitigate the nondeterminism: if the caller of TaskRunner::PostTask() passes the callback object as rvalue, TaskRunner::PostTask() leaves no reference on the original thread. I.e. the reference is not left if the callback is passed directly from Bind(), or passed with std::move() as below. task_runner->PostTask(FROM_HERE, base::Bind(&Foo)); base::Closure cb = base::Bind(&Foo); task_runner->PostTask(FROM_HERE, std::move(cb)); Otherwise, if the caller passes the callback as lvalue, a reference to the callback is left on the original thread as we do in the previous code. I.e. a reference is left if the callback is passed from other non-temporary variable. base::Closure cb = base::Bind(&Foo); task_runner->PostTask(FROM_HERE, cb); This is less controversial part of http://crrev.com/2637843002. This CL is mainly to land it incrementally. TBR=shrike@chromium.org BUG=704027 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Review-Url: https://codereview.chromium.org/2726523002 Cr-Commit-Position: refs/heads/master@{#460288} Committed: https://chromium.googlesource.com/chromium/src/+/070c8ffb44d04075bd7400691a2325cb6233558a

Patch Set 1 #

Patch Set 2 : IWYU fix #

Patch Set 3 : fix #

Patch Set 4 : cros fix #

Patch Set 5 : rebase #

Patch Set 6 : cros fix #

Patch Set 7 : fix #

Patch Set 8 : rebase #

Total comments: 7

Patch Set 9 : . #

Total comments: 4

Patch Set 10 : s/base::ResetAndReturn/std::move/ #

Total comments: 7

Patch Set 11 : rebase #

Total comments: 2

Patch Set 12 : -unneeded callback_helpers.h #

Total comments: 2

Patch Set 13 : . #

Patch Set 14 : . #

Total comments: 2

Patch Set 15 : erase Closure* #

Unified diffs Side-by-side diffs Delta from patch set Stats (+712 lines, -604 lines) Patch
M base/critical_closure.h View 1 3 chunks +6 lines, -4 lines 0 comments Download
M base/critical_closure_internal_ios.mm View 1 1 chunk +2 lines, -1 line 0 comments Download
M base/deferred_sequenced_task_runner.h View 3 chunks +5 lines, -4 lines 0 comments Download
M base/deferred_sequenced_task_runner.cc View 1 2 3 4 5 6 7 8 5 chunks +25 lines, -24 lines 0 comments Download
M base/message_loop/incoming_task_queue.h View 1 2 chunks +2 lines, -1 line 0 comments Download
M base/message_loop/incoming_task_queue.cc View 1 3 chunks +4 lines, -3 lines 0 comments Download
M base/message_loop/message_loop_task_runner.h View 1 2 chunks +3 lines, -2 lines 0 comments Download
M base/message_loop/message_loop_task_runner.cc View 1 2 chunks +8 lines, -4 lines 0 comments Download
M base/sequenced_task_runner.h View 1 2 chunks +3 lines, -2 lines 0 comments Download
M base/sequenced_task_runner.cc View 1 1 chunk +5 lines, -2 lines 0 comments Download
M base/task_runner.h View 2 chunks +2 lines, -3 lines 0 comments Download
M base/task_runner.cc View 2 chunks +5 lines, -5 lines 0 comments Download
M base/task_scheduler/post_task.h View 4 chunks +4 lines, -4 lines 0 comments Download
M base/task_scheduler/post_task.cc View 1 3 chunks +11 lines, -11 lines 0 comments Download
M base/task_scheduler/scheduler_single_thread_task_runner_manager.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +4 lines, -4 lines 0 comments Download
M base/task_scheduler/scheduler_worker_pool_impl.cc View 1 2 3 4 5 6 7 8 3 chunks +7 lines, -6 lines 0 comments Download
M base/task_scheduler/task.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M base/task_scheduler/task.cc View 1 2 3 4 5 6 7 8 9 1 chunk +5 lines, -3 lines 0 comments Download
M base/task_scheduler/task_scheduler.h View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -2 lines 0 comments Download
M base/task_scheduler/task_scheduler_impl.h View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M base/task_scheduler/task_scheduler_impl.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M base/test/null_task_runner.h View 2 chunks +3 lines, -2 lines 0 comments Download
M base/test/null_task_runner.cc View 1 chunk +4 lines, -5 lines 0 comments Download
M base/test/scoped_task_scheduler.cc View 1 6 chunks +12 lines, -9 lines 0 comments Download
M base/test/test_mock_time_task_runner.h View 1 2 3 4 2 chunks +3 lines, -2 lines 0 comments Download
M base/test/test_mock_time_task_runner.cc View 1 2 3 4 4 chunks +14 lines, -8 lines 0 comments Download
M base/test/test_pending_task.h View 1 chunk +1 line, -1 line 0 comments Download
M base/test/test_pending_task.cc View 1 1 chunk +9 lines, -9 lines 0 comments Download
M base/test/test_simple_task_runner.h View 1 2 chunks +3 lines, -2 lines 0 comments Download
M base/test/test_simple_task_runner.cc View 1 2 3 4 2 chunks +10 lines, -8 lines 0 comments Download
M base/threading/post_task_and_reply_impl.h View 1 chunk +1 line, -1 line 0 comments Download
M base/threading/post_task_and_reply_impl_unittest.cc View 1 2 3 4 2 chunks +4 lines, -2 lines 0 comments Download
M base/threading/sequenced_worker_pool.h View 1 6 chunks +9 lines, -10 lines 0 comments Download
M base/threading/sequenced_worker_pool.cc View 1 2 3 4 5 6 7 8 9 10 11 11 chunks +48 lines, -47 lines 0 comments Download
M base/threading/worker_pool.h View 1 chunk +2 lines, -1 line 0 comments Download
M base/threading/worker_pool.cc View 5 chunks +8 lines, -8 lines 0 comments Download
M base/threading/worker_pool_posix.h View 1 2 chunks +2 lines, -3 lines 0 comments Download
M base/threading/worker_pool_posix.cc View 1 5 chunks +10 lines, -7 lines 0 comments Download
M base/threading/worker_pool_win.cc View 1 2 3 4 2 chunks +5 lines, -2 lines 0 comments Download
M base/trace_event/memory_dump_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +7 lines, -5 lines 0 comments Download
M cc/test/ordered_simple_task_runner.h View 1 3 chunks +4 lines, -3 lines 0 comments Download
M cc/test/ordered_simple_task_runner.cc View 1 4 chunks +14 lines, -10 lines 0 comments Download
M cc/tiles/image_controller.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M cc/tiles/image_controller_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +13 lines, -10 lines 0 comments Download
M cc/tiles/tile_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 2 chunks +6 lines, -4 lines 0 comments Download
M chrome/browser/after_startup_task_utils.h View 1 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/after_startup_task_utils.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +10 lines, -9 lines 0 comments Download
M chrome/browser/after_startup_task_utils_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +10 lines, -7 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.h View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/login/users/fake_chrome_user_manager.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chromeos/login/users/fake_chrome_user_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/login/users/mock_user_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/memory/tab_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 6 chunks +7 lines, -11 lines 0 comments Download
M chromecast/base/system_time_change_notifier_unittest.cc View 1 2 chunks +4 lines, -3 lines 0 comments Download
M chromeos/dbus/blocking_method_caller.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M chromeos/dbus/blocking_method_caller_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +3 lines, -2 lines 0 comments Download
M chromeos/tpm/tpm_token_info_getter_unittest.cc View 1 2 chunks +3 lines, -2 lines 0 comments Download
M components/history/core/browser/history_service.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M components/history/core/browser/history_service.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -2 lines 0 comments Download
M components/memory_pressure/memory_pressure_monitor_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +6 lines, -7 lines 0 comments Download
M components/subresource_filter/content/browser/content_ruleset_service_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +3 lines, -3 lines 0 comments Download
M components/user_manager/fake_user_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/browser_thread_impl.h View 1 2 chunks +16 lines, -6 lines 0 comments Download
M content/browser/browser_thread_impl.cc View 6 chunks +27 lines, -24 lines 0 comments Download
M content/browser/compositor/reflector_impl_unittest.cc View 1 2 3 4 3 chunks +5 lines, -3 lines 0 comments Download
M content/browser/dom_storage/dom_storage_task_runner.h View 1 4 chunks +7 lines, -6 lines 0 comments Download
M content/browser/dom_storage/dom_storage_task_runner.cc View 2 chunks +9 lines, -8 lines 0 comments Download
M content/browser/startup_task_runner_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 10 chunks +34 lines, -40 lines 0 comments Download
M content/child/worker_thread_registry.h View 1 3 chunks +3 lines, -3 lines 0 comments Download
M content/child/worker_thread_registry.cc View 1 2 3 4 5 6 7 5 chunks +8 lines, -8 lines 0 comments Download
M content/public/browser/browser_thread.h View 4 chunks +7 lines, -7 lines 0 comments Download
M content/public/browser/content_browser_client.h View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -2 lines 0 comments Download
M content/public/browser/content_browser_client.cc View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -2 lines 0 comments Download
M content/public/child/worker_thread.h View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/categorized_worker_pool.h View 2 chunks +2 lines, -2 lines 0 comments Download
M content/renderer/categorized_worker_pool.cc View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +9 lines, -10 lines 0 comments Download
M content/renderer/render_thread_impl_browsertest.cc View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -2 lines 0 comments Download
M content/test/test_blink_web_unit_test_support.cc View 1 2 3 4 5 6 7 2 chunks +3 lines, -2 lines 0 comments Download
M ios/chrome/app/application_delegate/app_state.mm View 1 2 3 4 5 6 7 8 9 3 chunks +6 lines, -3 lines 0 comments Download
M ios/web/public/web_thread.h View 3 chunks +6 lines, -6 lines 0 comments Download
M ios/web/web_thread_impl.h View 1 2 chunks +2 lines, -1 line 0 comments Download
M ios/web/web_thread_impl.cc View 7 chunks +25 lines, -22 lines 0 comments Download
M media/base/fake_single_thread_task_runner.h View 1 chunk +2 lines, -2 lines 0 comments Download
M media/base/fake_single_thread_task_runner.cc View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +10 lines, -8 lines 0 comments Download
M media/cast/test/skewed_single_thread_task_runner.h View 1 2 chunks +3 lines, -2 lines 0 comments Download
M media/cast/test/skewed_single_thread_task_runner.cc View 1 3 chunks +6 lines, -6 lines 0 comments Download
M mojo/public/cpp/bindings/tests/bind_task_runner_unittest.cc View 1 4 chunks +9 lines, -7 lines 0 comments Download
M net/quic/test_tools/test_task_runner.h View 1 2 chunks +2 lines, -1 line 0 comments Download
M net/quic/test_tools/test_task_runner.cc View 1 2 chunks +4 lines, -3 lines 0 comments Download
M remoting/base/auto_thread_task_runner.h View 1 chunk +3 lines, -3 lines 0 comments Download
M remoting/base/auto_thread_task_runner.cc View 1 2 chunks +10 lines, -8 lines 0 comments Download
M remoting/client/plugin/pepper_main_thread_task_runner.h View 1 3 chunks +4 lines, -4 lines 0 comments Download
M remoting/client/plugin/pepper_main_thread_task_runner.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +8 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/platform/WebTaskRunner.h View 1 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.h View 1 2 3 4 5 chunks +8 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.cc View 1 2 3 4 9 chunks +27 lines, -24 lines 0 comments Download
M third_party/WebKit/Source/platform/scheduler/base/task_queue_manager_delegate_for_test.h View 1 2 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/scheduler/base/task_queue_manager_delegate_for_test.cc View 1 chunk +5 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/platform/scheduler/child/compositor_worker_scheduler.cc View 1 2 chunks +8 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/platform/scheduler/child/scheduler_tqm_delegate_for_test.h View 1 2 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/scheduler/child/scheduler_tqm_delegate_for_test.cc View 1 chunk +5 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/platform/scheduler/child/scheduler_tqm_delegate_impl.h View 1 2 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/scheduler/child/scheduler_tqm_delegate_impl.cc View 1 chunk +6 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/platform/scheduler/child/web_task_runner_impl.h View 1 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/scheduler/child/web_task_runner_impl.cc View 1 2 chunks +4 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/scheduler/test/fake_web_task_runner.h View 1 2 3 4 2 chunks +2 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/scheduler/test/fake_web_task_runner.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +9 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/platform/scheduler/test/lazy_scheduler_message_loop_delegate_for_tests.h View 1 2 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/scheduler/test/lazy_scheduler_message_loop_delegate_for_tests.cc View 1 chunk +6 lines, -5 lines 0 comments Download
M ui/accelerated_widget_mac/window_resize_helper_mac.cc View 1 2 3 4 5 6 7 8 9 10 11 6 chunks +11 lines, -10 lines 0 comments Download

Messages

Total messages: 161 (98 generated)
tzik
PTAL
3 years, 9 months ago (2017-02-28 13:26:59 UTC) #14
gab
//base lgtm w/ nits (didn't look at non-base code -- maybe it can be split ...
3 years, 9 months ago (2017-03-15 19:13:42 UTC) #38
tzik
https://codereview.chromium.org/2726523002/diff/140001/base/deferred_sequenced_task_runner.cc File base/deferred_sequenced_task_runner.cc (right): https://codereview.chromium.org/2726523002/diff/140001/base/deferred_sequenced_task_runner.cc#newcode101 base/deferred_sequenced_task_runner.cc:101: *i = DeferredTask(); On 2017/03/15 19:13:42, gab wrote: > ...
3 years, 9 months ago (2017-03-21 05:43:20 UTC) #41
tzik
On 2017/03/15 19:13:42, gab wrote: > //base lgtm w/ nits (didn't look at non-base code ...
3 years, 9 months ago (2017-03-21 06:00:36 UTC) #51
tzik
Adding owners. PTAL to: sky: //chrome, //components/history, //mojo kinuko: //content, tp/WK/Source/platform/WebTaskRunner.h oshima: //chromeos vmpstr: //cc/tiles, ...
3 years, 9 months ago (2017-03-21 06:01:22 UTC) #52
kinuko
So this doesn't still stop new code to leave a ref / make a copy ...
3 years, 9 months ago (2017-03-21 12:10:07 UTC) #55
mmenke
On 2017/03/21 12:10:07, kinuko wrote: > So this doesn't still stop new code to leave ...
3 years, 9 months ago (2017-03-21 12:50:31 UTC) #56
oshima
chromeos/ lgtm Can you add/file a bug? I know you explained in the description, but ...
3 years, 9 months ago (2017-03-21 14:55:12 UTC) #57
sky
Question for you on this: > With the pass-by-const-ref manner as the old code does, ...
3 years, 9 months ago (2017-03-21 14:56:30 UTC) #58
mmenke
On 2017/03/21 14:56:30, sky wrote: > Question for you on this: > > > With ...
3 years, 9 months ago (2017-03-21 15:03:37 UTC) #59
slan
On 2017/03/21 15:03:37, mmenke wrote: > On 2017/03/21 14:56:30, sky wrote: > > Question for ...
3 years, 9 months ago (2017-03-21 15:27:03 UTC) #60
xhwang
media/ lgtm
3 years, 9 months ago (2017-03-21 16:23:24 UTC) #61
Wez
https://codereview.chromium.org/2726523002/diff/160001/remoting/client/plugin/pepper_main_thread_task_runner.cc File remoting/client/plugin/pepper_main_thread_task_runner.cc (right): https://codereview.chromium.org/2726523002/diff/160001/remoting/client/plugin/pepper_main_thread_task_runner.cc#newcode60 remoting/client/plugin/pepper_main_thread_task_runner.cc:60: base::ResetAndReturn(&task).Run(); Why do you need ResetAndReturn() here?
3 years, 9 months ago (2017-03-21 16:43:36 UTC) #62
sky
On Tue, Mar 21, 2017 at 8:03 AM, <mmenke@chromium.org> wrote: > On 2017/03/21 14:56:30, sky ...
3 years, 9 months ago (2017-03-21 17:54:00 UTC) #63
sky
On Tue, Mar 21, 2017 at 8:03 AM, <mmenke@chromium.org> wrote: > On 2017/03/21 14:56:30, sky ...
3 years, 9 months ago (2017-03-21 17:54:00 UTC) #64
alex clarke (OOO till 29th)
third_party/WebKit/Source/platform/scheduler/ LGTM
3 years, 9 months ago (2017-03-21 18:51:01 UTC) #65
vmpstr
cc lgtm
3 years, 9 months ago (2017-03-21 19:45:07 UTC) #66
gab
On 2017/03/21 17:54:00, sky wrote: > On Tue, Mar 21, 2017 at 8:03 AM, <https://mail.google.com/mail/?view=cm&fs=1&tf=1&to=mmenke@chromium.org> ...
3 years, 9 months ago (2017-03-21 19:59:31 UTC) #67
gab
On 2017/03/21 19:59:31, gab wrote: > On 2017/03/21 17:54:00, sky wrote: > > On Tue, ...
3 years, 9 months ago (2017-03-21 20:02:29 UTC) #68
sky
On 2017/03/21 20:02:29, gab wrote: > On 2017/03/21 19:59:31, gab wrote: > > On 2017/03/21 ...
3 years, 9 months ago (2017-03-21 22:57:12 UTC) #69
gab
On 2017/03/21 22:57:12, sky wrote: > On 2017/03/21 20:02:29, gab wrote: > > On 2017/03/21 ...
3 years, 9 months ago (2017-03-21 23:03:23 UTC) #70
sky
That means it's easy to call the functions with a move, right? In that case ...
3 years, 9 months ago (2017-03-22 00:07:06 UTC) #71
sky
That means it's easy to call the functions with a move, right? In that case ...
3 years, 9 months ago (2017-03-22 00:07:06 UTC) #72
tzik
On 2017/03/21 12:10:07, kinuko wrote: > So this doesn't still stop new code to leave ...
3 years, 9 months ago (2017-03-22 08:17:29 UTC) #79
tzik
On 2017/03/21 14:55:12, oshima wrote: > chromeos/ lgtm > > Can you add/file a bug? ...
3 years, 9 months ago (2017-03-22 08:18:17 UTC) #80
tzik
On 2017/03/21 23:03:23, gab wrote: > On 2017/03/21 22:57:12, sky wrote: > > On 2017/03/21 ...
3 years, 9 months ago (2017-03-22 08:51:19 UTC) #81
tzik
https://codereview.chromium.org/2726523002/diff/140001/base/threading/sequenced_worker_pool.cc File base/threading/sequenced_worker_pool.cc (right): https://codereview.chromium.org/2726523002/diff/140001/base/threading/sequenced_worker_pool.cc#newcode1023 base/threading/sequenced_worker_pool.cc:1023: base::ResetAndReturn(&task.task).Run(); On 2017/03/21 05:43:20, tzik wrote: > On 2017/03/15 ...
3 years, 9 months ago (2017-03-22 08:52:03 UTC) #82
tzik
On 2017/03/22 00:07:06, sky wrote: > That means it's easy to call the functions with ...
3 years, 9 months ago (2017-03-22 09:04:02 UTC) #83
gab
On 2017/03/22 09:04:02, tzik wrote: > On 2017/03/22 00:07:06, sky wrote: > > That means ...
3 years, 9 months ago (2017-03-22 16:04:39 UTC) #86
sky
Thanks again for your patience. I'm probably missing something, but why do have code like: ...
3 years, 9 months ago (2017-03-22 17:34:12 UTC) #87
gab
On 2017/03/22 17:34:12, sky wrote: > Thanks again for your patience. > > I'm probably ...
3 years, 9 months ago (2017-03-22 17:46:45 UTC) #88
sky
On Wed, Mar 22, 2017 at 10:46 AM, <gab@chromium.org> wrote: > On 2017/03/22 17:34:12, sky ...
3 years, 9 months ago (2017-03-22 17:50:37 UTC) #89
sky
On Wed, Mar 22, 2017 at 10:46 AM, <gab@chromium.org> wrote: > On 2017/03/22 17:34:12, sky ...
3 years, 9 months ago (2017-03-22 17:50:37 UTC) #90
danakj
On Wed, Mar 22, 2017 at 1:50 PM, Scott Violet <sky@chromium.org> wrote: > On Wed, ...
3 years, 9 months ago (2017-03-22 17:56:43 UTC) #91
danakj
On Wed, Mar 22, 2017 at 1:50 PM, Scott Violet <sky@chromium.org> wrote: > On Wed, ...
3 years, 9 months ago (2017-03-22 17:56:43 UTC) #92
gab
On 2017/03/22 17:56:43, danakj wrote: > On Wed, Mar 22, 2017 at 1:50 PM, Scott ...
3 years, 9 months ago (2017-03-22 18:00:58 UTC) #93
ccameron
ui/accelerated_widget_mac lgtm
3 years, 9 months ago (2017-03-22 18:21:01 UTC) #94
brettw
I'm not wild about the Run syntax, but I do think it's better to use ...
3 years, 9 months ago (2017-03-22 19:10:34 UTC) #96
sky
Ok, LGTM. Thanks again for taking the time to explain it.
3 years, 9 months ago (2017-03-22 20:22:03 UTC) #97
tzik
Thanks gab and dana for driving the discussion! Adding other owners who I forgot to ...
3 years, 9 months ago (2017-03-23 13:31:17 UTC) #101
engedy
//components/subresource_filter LGTM % nit, thanks! https://codereview.chromium.org/2726523002/diff/200001/components/subresource_filter/content/browser/content_ruleset_service_unittest.cc File components/subresource_filter/content/browser/content_ruleset_service_unittest.cc (right): https://codereview.chromium.org/2726523002/diff/200001/components/subresource_filter/content/browser/content_ruleset_service_unittest.cc#newcode16 components/subresource_filter/content/browser/content_ruleset_service_unittest.cc:16: #include "base/callback_helpers.h" nit: I ...
3 years, 9 months ago (2017-03-23 14:09:26 UTC) #102
xiyuan
user_manager lgtm
3 years, 9 months ago (2017-03-23 15:19:11 UTC) #105
tzik
https://codereview.chromium.org/2726523002/diff/200001/components/subresource_filter/content/browser/content_ruleset_service_unittest.cc File components/subresource_filter/content/browser/content_ruleset_service_unittest.cc (right): https://codereview.chromium.org/2726523002/diff/200001/components/subresource_filter/content/browser/content_ruleset_service_unittest.cc#newcode16 components/subresource_filter/content/browser/content_ruleset_service_unittest.cc:16: #include "base/callback_helpers.h" On 2017/03/23 14:09:26, engedy wrote: > nit: ...
3 years, 9 months ago (2017-03-24 09:25:55 UTC) #111
gab
Just peeked at remaining files lacking reviews: components/memory_pressure/memory_pressure_monitor_unittest.cc remoting/ ios/ lgtm % comment, feel free ...
3 years, 9 months ago (2017-03-24 15:56:08 UTC) #119
tzik
https://codereview.chromium.org/2726523002/diff/220001/components/memory_pressure/memory_pressure_monitor_unittest.cc File components/memory_pressure/memory_pressure_monitor_unittest.cc (right): https://codereview.chromium.org/2726523002/diff/220001/components/memory_pressure/memory_pressure_monitor_unittest.cc#newcode46 components/memory_pressure/memory_pressure_monitor_unittest.cc:46: return PostDelayedTask(from_here, &task, delay); On 2017/03/24 15:56:08, gab wrote: ...
3 years, 8 months ago (2017-03-28 05:59:15 UTC) #124
tzik
On 2017/03/24 15:56:08, gab wrote: > Just peeked at remaining files lacking reviews: > > ...
3 years, 8 months ago (2017-03-28 06:11:41 UTC) #125
Wez
remoting/ LGTM
3 years, 8 months ago (2017-03-28 06:40:22 UTC) #126
sdefresne
ios/ lgtm
3 years, 8 months ago (2017-03-28 08:46:50 UTC) #129
danakj
On Tue, Mar 28, 2017 at 1:59 AM, <tzik@chromium.org> wrote: > > https://codereview.chromium.org/2726523002/diff/220001/ > components/memory_pressure/memory_pressure_monitor_unittest.cc ...
3 years, 8 months ago (2017-03-28 15:09:48 UTC) #130
danakj
On Tue, Mar 28, 2017 at 1:59 AM, <tzik@chromium.org> wrote: > > https://codereview.chromium.org/2726523002/diff/220001/ > components/memory_pressure/memory_pressure_monitor_unittest.cc ...
3 years, 8 months ago (2017-03-28 15:10:39 UTC) #131
gab
https://codereview.chromium.org/2726523002/diff/260001/content/browser/startup_task_runner_unittest.cc File content/browser/startup_task_runner_unittest.cc (right): https://codereview.chromium.org/2726523002/diff/260001/content/browser/startup_task_runner_unittest.cc#newcode35 content/browser/startup_task_runner_unittest.cc:35: bool SaveTaskArg(base::Closure* arg) { Ouch, that was already an ...
3 years, 8 months ago (2017-03-28 15:29:52 UTC) #132
gab
On 2017/03/28 15:10:39, danakj wrote: > On Tue, Mar 28, 2017 at 1:59 AM, <https://mail.google.com/mail/?view=cm&fs=1&tf=1&to=tzik@chromium.org> ...
3 years, 8 months ago (2017-03-28 15:32:25 UTC) #133
danakj
On Tue, Mar 28, 2017 at 11:32 AM, <gab@chromium.org> wrote: > On 2017/03/28 15:10:39, danakj ...
3 years, 8 months ago (2017-03-28 15:37:48 UTC) #134
danakj
On Tue, Mar 28, 2017 at 11:32 AM, <gab@chromium.org> wrote: > On 2017/03/28 15:10:39, danakj ...
3 years, 8 months ago (2017-03-28 15:38:34 UTC) #135
tzik
https://codereview.chromium.org/2726523002/diff/260001/content/browser/startup_task_runner_unittest.cc File content/browser/startup_task_runner_unittest.cc (right): https://codereview.chromium.org/2726523002/diff/260001/content/browser/startup_task_runner_unittest.cc#newcode35 content/browser/startup_task_runner_unittest.cc:35: bool SaveTaskArg(base::Closure* arg) { On 2017/03/28 15:29:51, gab wrote: ...
3 years, 8 months ago (2017-03-28 17:34:21 UTC) #138
gab
On 2017/03/28 17:34:21, tzik wrote: > https://codereview.chromium.org/2726523002/diff/260001/content/browser/startup_task_runner_unittest.cc > File content/browser/startup_task_runner_unittest.cc (right): > > https://codereview.chromium.org/2726523002/diff/260001/content/browser/startup_task_runner_unittest.cc#newcode35 > ...
3 years, 8 months ago (2017-03-28 19:36:30 UTC) #149
tzik
TBRing shrike@. PTAL to //components/memory_pressure later.
3 years, 8 months ago (2017-03-29 04:16:47 UTC) #151
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2726523002/280001
3 years, 8 months ago (2017-03-29 04:17:34 UTC) #154
commit-bot: I haz the power
Committed patchset #15 (id:280001) as https://chromium.googlesource.com/chromium/src/+/070c8ffb44d04075bd7400691a2325cb6233558a
3 years, 8 months ago (2017-03-29 05:29:50 UTC) #157
shrike
On 2017/03/29 04:16:47, tzik wrote: > TBRing shrike@. PTAL to //components/memory_pressure later. It's only the ...
3 years, 8 months ago (2017-03-29 16:12:37 UTC) #158
gab
On 2017/03/29 16:12:37, shrike wrote: > On 2017/03/29 04:16:47, tzik wrote: > > TBRing shrike@. ...
3 years, 8 months ago (2017-03-29 16:36:27 UTC) #159
shrike
On 2017/03/29 16:36:27, gab wrote: > Yes. OK, lgtm. Please pardon my ignorance, but how ...
3 years, 8 months ago (2017-03-29 18:54:40 UTC) #160
gab
3 years, 8 months ago (2017-03-29 19:12:10 UTC) #161
Message was sent while issue was closed.
On 2017/03/29 18:54:40, shrike wrote:
> On 2017/03/29 16:36:27, gab wrote:
> > Yes.
> 
> OK, lgtm.
> 
> Please pardon my ignorance, but how does the underscore work/what does it do
in
> PostDelayedTask(_, delay)? I've never seen that construct before.

https://github.com/google/googletest/blob/master/googlemock/docs/CheatSheet.m...

Powered by Google App Engine
This is Rietveld 408576698