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

Issue 2085023004: Remove calls to deprecated MessageLoop methods in tools. (Closed)

Created:
4 years, 6 months ago by fdoray
Modified:
4 years, 6 months ago
Reviewers:
Nico
CC:
chromium-reviews, Dirk Pranke, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove calls to deprecated MessageLoop methods in tools. This CL makes the following replacements in tools: 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 |y| isn't MessageLoopForUI::current() or MessageLoopForIO::current() y.message_loop()->task_runner() y.task_runner() y->message_loop()->task_runner() y->task_runner() ---------------------------------------------------------- |x| is a base::MessageLoop(ForUI|ForIO) or a pointer to a base::MessageLoop(ForUI|ForIO). |y| is a base::Thread or a pointer to a base::Thread. 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. BUG=616447 R=thakis@chromium.org Committed: https://crrev.com/01c8157ece1ba00df660bdf8c17cf01bae3cd230 Cr-Commit-Position: refs/heads/master@{#401371}

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -24 lines) Patch
M tools/gn/loader.cc View 5 chunks +10 lines, -8 lines 0 comments Download
M tools/gn/loader_unittest.cc View 4 chunks +5 lines, -4 lines 2 comments Download
M tools/gn/scheduler.cc View 4 chunks +10 lines, -9 lines 0 comments Download
M tools/gn/setup.cc View 2 chunks +4 lines, -2 lines 0 comments Download
M tools/ipc_fuzzer/message_replay/replay_process.cc View 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 8 (2 generated)
fdoray
Can you review this CL? Thanks.
4 years, 6 months ago (2016-06-22 15:44:34 UTC) #1
Nico
rs-lgtm https://codereview.chromium.org/2085023004/diff/1/tools/gn/loader_unittest.cc File tools/gn/loader_unittest.cc (right): https://codereview.chromium.org/2085023004/diff/1/tools/gn/loader_unittest.cc#newcode150 tools/gn/loader_unittest.cc:150: base::RunLoop().RunUntilIdle(); (this replacement looks like it makes things ...
4 years, 6 months ago (2016-06-22 18:22:28 UTC) #2
fdoray
https://codereview.chromium.org/2085023004/diff/1/tools/gn/loader_unittest.cc File tools/gn/loader_unittest.cc (right): https://codereview.chromium.org/2085023004/diff/1/tools/gn/loader_unittest.cc#newcode150 tools/gn/loader_unittest.cc:150: base::RunLoop().RunUntilIdle(); On 2016/06/22 18:22:28, Nico wrote: > (this replacement ...
4 years, 6 months ago (2016-06-22 18:41:51 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2085023004/1
4 years, 6 months ago (2016-06-22 18:43:00 UTC) #5
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 6 months ago (2016-06-22 18:49:31 UTC) #6
commit-bot: I haz the power
4 years, 6 months ago (2016-06-22 18:58:03 UTC) #8
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/01c8157ece1ba00df660bdf8c17cf01bae3cd230
Cr-Commit-Position: refs/heads/master@{#401371}

Powered by Google App Engine
This is Rietveld 408576698