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

Issue 2375663002: Replace MessageLoop::current()->task_runner() with ThreadTaskRunnerHandle::Get(). (Closed)

Created:
4 years, 2 months ago by fdoray
Modified:
4 years, 2 months ago
CC:
achuith+watch_chromium.org, alemate+watch_chromium.org, blink-reviews, blink-worker-reviews_chromium.org, chromium-reviews, darin-cc_chromium.org, davemoore+watch_chromium.org, einbinder+watch-test-runner_chromium.org, elijahtaylor+arcwatch_chromium.org, gavinp+memory_chromium.org, hidehiko+watch_chromium.org, horo+watch_chromium.org, jam, jochen+watch_chromium.org, jsbell+serviceworker_chromium.org, kalyank, kinuko+watch, kinuko+serviceworker, lhchavez+watch_chromium.org, michaeln, mlamouri+watch-screen-orientation_chromium.org, mlamouri+watch-test-runner_chromium.org, nhiroki, nona+watch_chromium.org, oshima+watch_chromium.org, ozone-reviews_chromium.org, sadrul, scheduler-bugs_chromium.org, serviceworker-reviews, shimazu+serviceworker_chromium.org, shuchen+watch_chromium.org, James Su, tfarina, tzik, yusukes+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Replace MessageLoop::current()->task_runner() with ThreadTaskRunnerHandle::Get(). This CL makes the following replacements: MessageLoop::current()->task_runner() becomes ThreadTaskRunnerHandle::Get() MessageLoopForUIorIO::current()->task_runner() becomes DCHECK(MessageLoopForUIorIO::IsCurrent()); (or ASSERT_TRUE) ThreadTaskRunnerHandle::Get() TBR=gavinp@chromium.org BUG=650723 Committed: https://crrev.com/19e49e924e88e50546ec1a81dbc7b43ea4b172ef Cr-Commit-Position: refs/heads/master@{#422211}

Patch Set 1 #

Patch Set 2 : self-review #

Patch Set 3 : self-review #

Total comments: 7

Patch Set 4 : CR gab #14 #

Patch Set 5 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+238 lines, -219 lines) Patch
M ash/shelf/shelf_view_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M base/memory/ref_counted_delete_on_message_loop.h View 1 2 3 1 chunk +2 lines, -4 lines 0 comments Download
M base/message_loop/message_loop_test.cc View 21 chunks +126 lines, -140 lines 0 comments Download
M base/message_loop/message_loop_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M base/message_loop/message_pump_libevent_unittest.cc View 4 chunks +4 lines, -5 lines 0 comments Download
M chrome/browser/chromeos/login/easy_unlock/easy_unlock_reauth.cc View 1 2 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/chromeos/login/login_ui_keyboard_browsertest.cc View 1 2 2 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/ui/ash/media_delegate_chromeos.cc View 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/ui/views/chrome_views_delegate.cc View 1 3 chunks +5 lines, -1 line 0 comments Download
M chrome/browser/ui/views/menu_model_adapter_test.cc View 1 chunk +2 lines, -1 line 0 comments Download
M components/arc/arc_bridge_service_impl.cc View 1 2 3 4 2 chunks +1 line, -2 lines 0 comments Download
M components/browser_watcher/window_hang_monitor_win.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M components/browsing_data/content/conditional_cache_deletion_helper.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/favicon/core/large_icon_service_unittest.cc View 3 chunks +4 lines, -4 lines 0 comments Download
M components/leveldb/leveldb_app.cc View 2 chunks +2 lines, -3 lines 0 comments Download
M components/previews/core/previews_black_list_unittest.cc View 2 chunks +2 lines, -1 line 0 comments Download
M components/safe_browsing_db/v4_database.cc View 1 2 3 4 3 chunks +5 lines, -5 lines 0 comments Download
M components/test_runner/mock_screen_orientation_client.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M components/update_client/component_patcher_unittest.cc View 2 chunks +2 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac_editcommand_helper_unittest.mm View 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/service_worker/service_worker_url_request_job_unittest.cc View 1 2 3 2 chunks +1 line, -2 lines 0 comments Download
M content/browser/webui/url_data_manager_backend.cc View 2 chunks +2 lines, -1 line 0 comments Download
M content/common/child_process_host_impl.cc View 2 chunks +3 lines, -1 line 0 comments Download
M content/public/test/test_renderer_host.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M device/generic_sensor/platform_sensor_android.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M ipc/ipc_channel_reader.cc View 1 2 chunks +4 lines, -2 lines 0 comments Download
M ipc/ipc_channel_win.cc View 1 3 chunks +4 lines, -1 line 0 comments Download
M services/shell/standalone/context.cc View 1 chunk +1 line, -1 line 0 comments Download
M services/shell/standalone/tracer.cc View 2 chunks +2 lines, -1 line 0 comments Download
M services/tracing/public/cpp/provider.cc View 3 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/scheduler/base/task_queue_manager_perftest.cc View 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/scheduler/base/task_queue_manager_unittest.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/libaddressinput/chromium/chrome_address_validator.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/zlib/google/zip_reader.cc View 3 chunks +2 lines, -3 lines 0 comments Download
M ui/aura/test/ui_controls_factory_aurawin.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M ui/ozone/platform/wayland/wayland_connection.cc View 2 chunks +3 lines, -1 line 0 comments Download
M ui/shell_dialogs/select_file_dialog_win.cc View 2 chunks +4 lines, -1 line 0 comments Download
M ui/views/controls/menu/menu_controller_unittest.cc View 1 2 3 8 chunks +10 lines, -7 lines 0 comments Download
M ui/views/widget/desktop_aura/x11_whole_screen_move_loop.cc View 1 3 chunks +5 lines, -1 line 0 comments Download

Messages

Total messages: 37 (19 generated)
fdoray
gab@: Please take a first look.
4 years, 2 months ago (2016-09-27 19:12:50 UTC) #11
gab
lgtm w/ comments, woot! https://codereview.chromium.org/2375663002/diff/40001/base/memory/ref_counted_delete_on_message_loop.h File base/memory/ref_counted_delete_on_message_loop.h (right): https://codereview.chromium.org/2375663002/diff/40001/base/memory/ref_counted_delete_on_message_loop.h#newcode36 base/memory/ref_counted_delete_on_message_loop.h:36: // This constructor will accept ...
4 years, 2 months ago (2016-09-28 17:19:03 UTC) #14
fdoray
https://codereview.chromium.org/2375663002/diff/40001/base/memory/ref_counted_delete_on_message_loop.h File base/memory/ref_counted_delete_on_message_loop.h (right): https://codereview.chromium.org/2375663002/diff/40001/base/memory/ref_counted_delete_on_message_loop.h#newcode36 base/memory/ref_counted_delete_on_message_loop.h:36: // This constructor will accept a MessageL00pProxy object, but ...
4 years, 2 months ago (2016-09-28 18:54:50 UTC) #15
fdoray
A first review of this CL was made by gab@. OWNERS: Can you LGTM changes ...
4 years, 2 months ago (2016-09-28 19:05:09 UTC) #17
gab
https://codereview.chromium.org/2375663002/diff/40001/components/browsing_data/content/conditional_cache_deletion_helper.cc File components/browsing_data/content/conditional_cache_deletion_helper.cc (left): https://codereview.chromium.org/2375663002/diff/40001/components/browsing_data/content/conditional_cache_deletion_helper.cc#oldcode10 components/browsing_data/content/conditional_cache_deletion_helper.cc:10: #include "base/threading/thread_task_runner_handle.h" On 2016/09/28 18:54:50, fdoray wrote: > On ...
4 years, 2 months ago (2016-09-28 19:08:12 UTC) #18
dcheng
base LGTM
4 years, 2 months ago (2016-09-28 20:12:41 UTC) #19
Elliot Glaysher
services/tracing lgtm
4 years, 2 months ago (2016-09-28 21:58:27 UTC) #20
Reilly Grant (use Gerrit)
device lgtm
4 years, 2 months ago (2016-09-29 02:32:02 UTC) #21
Sami
third_party/WebKit/Source/platform/scheduler lgtm
4 years, 2 months ago (2016-09-29 09:47:25 UTC) #22
jochen (gone - plz use gerrit)
lgtm
4 years, 2 months ago (2016-09-29 12:22:02 UTC) #23
fdoray
sky@: ash/, chrome/, services/shell/, ui/ dcheng@: base/ [done] jochen@: components/, content/ [done] reillyg@: device/ [done] ...
4 years, 2 months ago (2016-09-29 14:49:21 UTC) #24
sky
LGTM
4 years, 2 months ago (2016-09-29 16:37:08 UTC) #25
jam
lgtm
4 years, 2 months ago (2016-09-29 20:09:34 UTC) #26
Evan Stade
On 2016/09/29 20:09:34, jam wrote: > lgtm
4 years, 2 months ago (2016-09-30 18:14:50 UTC) #27
Evan Stade
(don't know what happened there...) libaddressinput lgtm, but this is a perfect example of when ...
4 years, 2 months ago (2016-09-30 18:15:35 UTC) #28
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/2375663002/80001
4 years, 2 months ago (2016-09-30 18:55:59 UTC) #33
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 2 months ago (2016-09-30 20:42:38 UTC) #35
commit-bot: I haz the power
4 years, 2 months ago (2016-09-30 20:45:31 UTC) #37
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/19e49e924e88e50546ec1a81dbc7b43ea4b172ef
Cr-Commit-Position: refs/heads/master@{#422211}

Powered by Google App Engine
This is Rietveld 408576698