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

Issue 2104363004: Remove remaining calls to deprecated MessageLoop methods. (Closed)

Created:
4 years, 5 months ago by fdoray
Modified:
4 years, 5 months ago
CC:
Aaron Boodman, abarth-chromium, ben+mojo_chromium.org, blink-worker-reviews_chromium.org, browser-components-watch_chromium.org, chromium-reviews, chromoting-reviews_chromium.org, darin (slow to review), darin-cc_chromium.org, estade+watch_chromium.org, feature-media-reviews_chromium.org, grt+watch_chromium.org, horo+watch_chromium.org, jam, jdonnelly+autofillwatch_chromium.org, jsbell+serviceworker_chromium.org, kinuko+watch, kinuko+serviceworker, mcasas+watch+vc_chromium.org, michaeln, miu+watch_chromium.org, mlamouri+watch-content_chromium.org, nhiroki, posciak+watch_chromium.org, qsr+mojo_chromium.org, rouslan+autofill_chromium.org, samuong+watch_chromium.org, serviceworker-reviews, tzik, vabr+watchlistautofill_chromium.org, viettrungluu+watch_chromium.org, wifiprefetch-reviews_google.com, yzshen+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove remaining calls to deprecated MessageLoop methods. This CL makes the following replacements everywhere: Before After ---------------------------------------------------------- x.PostTask() x.task_runner()->PostTask() PostDelayedTask() PostDelayedTask() ReleaseSoon() ReleaseSoon() DeleteSoon() DeleteSoon() x->PostTask() y->task_runner()->PostTask() PostDelayedTask() PostDelayedTask() ReleaseSoon() ReleaseSoon() DeleteSoon() DeleteSoon() x.Run() RunLoop().Run() x.RunUntilIdle() RunLoop().RunUntilIdle() x->Run() RunLoop().Run() x->RunUntilIdle() RunLoop().RunUntilIdle() If |x| isn't MessageLoopForUI::current() or MessageLoopForIO::current() ---------------------------------------------------------- |x| is a base::MessageLoop(ForUI|ForIO) or a pointer to a base::MessageLoop(ForUI|ForIO). This CL was generated using the MessageLoopDeprecatedMethods clang-tidy fix available on the associated bug. Only files that compile on Mac are affected. Follow-up CLs will make these replacements for other platforms. This CL doesn't change code behavior. TBR=garykac@chromium.org BUG=616447 Committed: https://crrev.com/6d056ff7a8b9cadcd19dba50d20059428aa1db9b Cr-Commit-Position: refs/heads/master@{#403716}

Patch Set 1 #

Patch Set 2 : fix build #

Total comments: 12

Patch Set 3 : CR gab #

Patch Set 4 : fix build #

Total comments: 5

Patch Set 5 : CR gab #

Unified diffs Side-by-side diffs Delta from patch set Stats (+91 lines, -78 lines) Patch
M chrome/browser/safe_browsing/download_protection_service_unittest.cc View 4 chunks +4 lines, -4 lines 0 comments Download
M chrome/test/chromedriver/server/chromedriver_server.cc View 3 chunks +4 lines, -3 lines 0 comments Download
M components/autofill/core/browser/personal_data_manager_unittest.cc View 6 chunks +6 lines, -6 lines 0 comments Download
M components/precache/core/precache_fetcher_unittest.cc View 2 chunks +2 lines, -1 line 0 comments Download
M content/browser/service_worker/service_worker_url_request_job_unittest.cc View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M content/renderer/media/media_stream_audio_processor.cc View 2 chunks +2 lines, -1 line 0 comments Download
M ipc/ipc_sync_channel.cc View 2 chunks +2 lines, -1 line 0 comments Download
M media/test/pipeline_integration_test.cc View 1 2 3 4 5 chunks +5 lines, -4 lines 0 comments Download
M mojo/public/cpp/bindings/tests/associated_interface_unittest.cc View 3 chunks +4 lines, -3 lines 0 comments Download
M mojo/public/cpp/bindings/tests/binding_callback_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M mojo/public/cpp/bindings/tests/binding_unittest.cc View 7 chunks +8 lines, -8 lines 0 comments Download
M mojo/public/cpp/bindings/tests/handle_passing_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M mojo/public/cpp/bindings/tests/interface_ptr_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M mojo/public/cpp/bindings/tests/request_response_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M mojo/public/cpp/bindings/tests/sync_method_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M mojo/public/cpp/bindings/tests/union_unittest.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M mojo/public/cpp/bindings/tests/validation_unittest.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M remoting/host/chromoting_host_unittest.cc View 2 chunks +2 lines, -1 line 0 comments Download
M remoting/host/desktop_process_unittest.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M remoting/host/ipc_desktop_environment_unittest.cc View 2 chunks +3 lines, -1 line 0 comments Download
M remoting/protocol/authenticator_test_base.h View 1 2 3 4 2 chunks +3 lines, -2 lines 0 comments Download
M remoting/protocol/channel_multiplexer_unittest.cc View 1 2 3 4 5 chunks +7 lines, -4 lines 0 comments Download
M remoting/protocol/connection_tester.h View 1 2 3 chunks +3 lines, -6 lines 0 comments Download
M remoting/protocol/connection_tester.cc View 1 2 3 6 chunks +7 lines, -7 lines 0 comments Download
M remoting/protocol/monitored_video_stub_unittest.cc View 3 chunks +4 lines, -3 lines 0 comments Download
M remoting/protocol/negotiating_authenticator_unittest.cc View 2 chunks +2 lines, -1 line 0 comments Download
M remoting/test/protocol_perftest.cc View 1 2 3 4 2 chunks +6 lines, -7 lines 0 comments Download
M services/shell/tests/shell/shell_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 27 (10 generated)
fdoray
Can you take a look at this CL? chrome/ jochen@chromium.org components/ caitkp@chromium.org content/ jochen@chromium.org ipc/ ...
4 years, 5 months ago (2016-06-30 13:59:01 UTC) #2
jochen (gone - plz use gerrit)
can you please find somebody from your team to review this CL first? Preferably somebody ...
4 years, 5 months ago (2016-06-30 15:17:23 UTC) #4
Ben Goodger (Google)
lgtm
4 years, 5 months ago (2016-06-30 15:30:54 UTC) #5
fdoray
On 2016/06/30 15:17:23, jochen wrote: > can you please find somebody from your team to ...
4 years, 5 months ago (2016-06-30 17:30:09 UTC) #7
Sergey Ulanov
remoting lgtm
4 years, 5 months ago (2016-06-30 18:31:28 UTC) #9
gab
lgtm w/ comments because this gets us closer to removing long-deprecated MessageLoop methods, but, as ...
4 years, 5 months ago (2016-06-30 20:28:18 UTC) #10
jam
lgtm
4 years, 5 months ago (2016-06-30 22:14:37 UTC) #11
jochen (gone - plz use gerrit)
lgtm
4 years, 5 months ago (2016-07-01 14:13:21 UTC) #12
chcunningham
media lgtm
4 years, 5 months ago (2016-07-01 15:41:39 UTC) #13
fdoray
https://codereview.chromium.org/2104363004/diff/20001/media/test/pipeline_integration_test.cc File media/test/pipeline_integration_test.cc (left): https://codereview.chromium.org/2104363004/diff/20001/media/test/pipeline_integration_test.cc#oldcode792 media/test/pipeline_integration_test.cc:792: message_loop_.Run(); On 2016/06/30 20:28:18, gab wrote: > Feels a ...
4 years, 5 months ago (2016-07-04 13:59:47 UTC) #15
gab
lgtm w/ nits https://codereview.chromium.org/2104363004/diff/20001/media/test/pipeline_integration_test.cc File media/test/pipeline_integration_test.cc (left): https://codereview.chromium.org/2104363004/diff/20001/media/test/pipeline_integration_test.cc#oldcode792 media/test/pipeline_integration_test.cc:792: message_loop_.Run(); On 2016/07/04 13:59:46, fdoray wrote: ...
4 years, 5 months ago (2016-07-04 14:47:06 UTC) #16
fdoray
https://codereview.chromium.org/2104363004/diff/20001/media/test/pipeline_integration_test.cc File media/test/pipeline_integration_test.cc (left): https://codereview.chromium.org/2104363004/diff/20001/media/test/pipeline_integration_test.cc#oldcode792 media/test/pipeline_integration_test.cc:792: message_loop_.Run(); On 2016/07/04 14:47:06, gab wrote: > On 2016/07/04 ...
4 years, 5 months ago (2016-07-04 16:33:59 UTC) #17
gab
lgtm https://codereview.chromium.org/2104363004/diff/60001/remoting/protocol/channel_multiplexer_unittest.cc File remoting/protocol/channel_multiplexer_unittest.cc (right): https://codereview.chromium.org/2104363004/diff/60001/remoting/protocol/channel_multiplexer_unittest.cc#newcode128 remoting/protocol/channel_multiplexer_unittest.cc:128: base::MessageLoop message_loop_; On 2016/07/04 16:33:59, fdoray wrote: > ...
4 years, 5 months ago (2016-07-04 17:24:14 UTC) #18
Cait (Slow)
components lgtm
4 years, 5 months ago (2016-07-04 21:06:44 UTC) #19
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/2104363004/80001
4 years, 5 months ago (2016-07-04 21:08:22 UTC) #22
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 5 months ago (2016-07-04 21:57:00 UTC) #25
commit-bot: I haz the power
4 years, 5 months ago (2016-07-04 21:58:37 UTC) #27
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/6d056ff7a8b9cadcd19dba50d20059428aa1db9b
Cr-Commit-Position: refs/heads/master@{#403716}

Powered by Google App Engine
This is Rietveld 408576698