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

Issue 2130443002: Remove calls to MessageLoop::current() in tools. (Closed)

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

Description

Remove calls to MessageLoop::current() in tools. Why? The fact that there's a MessageLoop on the thread is an unnecessary implementation detail. When browser threads are migrated to base/task_scheduler, tasks will no longer have access to a MessageLoop. These changes were generated manually. BUG=616447 Committed: https://crrev.com/f0544fc6ed9a3477926b3640fae9706836f211ea Cr-Commit-Position: refs/heads/master@{#406006}

Patch Set 1 #

Patch Set 2 : fix build error #

Total comments: 2

Patch Set 3 : CR brettw (add comment) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+46 lines, -44 lines) Patch
M tools/gn/loader.h View 3 chunks +8 lines, -8 lines 0 comments Download
M tools/gn/loader.cc View 1 2 6 chunks +12 lines, -12 lines 0 comments Download
M tools/gn/loader_unittest.cc View 1 chunk +0 lines, -1 line 0 comments Download
M tools/gn/scheduler.h View 2 chunks +4 lines, -1 line 0 comments Download
M tools/gn/scheduler.cc View 1 4 chunks +12 lines, -13 lines 0 comments Download
M tools/gn/setup.cc View 1 2 3 chunks +10 lines, -9 lines 0 comments Download

Messages

Total messages: 16 (7 generated)
fdoray
Can you review this CL? Thanks.
4 years, 5 months ago (2016-07-06 19:57:13 UTC) #3
Nico
since these are all in tools/gn, you probably want a tools/gn/owner
4 years, 5 months ago (2016-07-06 20:22:48 UTC) #4
fdoray
brettw@: Can you review this CL? Thanks.
4 years, 5 months ago (2016-07-06 20:24:18 UTC) #6
brettw
lgtm https://codereview.chromium.org/2130443002/diff/20001/tools/gn/loader.cc File tools/gn/loader.cc (right): https://codereview.chromium.org/2130443002/diff/20001/tools/gn/loader.cc#newcode103 tools/gn/loader.cc:103: if (base::ThreadTaskRunnerHandle::IsSet()) Can you add a comment here ...
4 years, 5 months ago (2016-07-11 20:47:25 UTC) #7
fdoray
https://codereview.chromium.org/2130443002/diff/20001/tools/gn/loader.cc File tools/gn/loader.cc (right): https://codereview.chromium.org/2130443002/diff/20001/tools/gn/loader.cc#newcode103 tools/gn/loader.cc:103: if (base::ThreadTaskRunnerHandle::IsSet()) On 2016/07/11 20:47:25, brettw (ping after 24h) ...
4 years, 5 months ago (2016-07-18 15:28:40 UTC) #8
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/2130443002/40001
4 years, 5 months ago (2016-07-18 15:29:21 UTC) #11
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 5 months ago (2016-07-18 16:05:35 UTC) #13
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-18 16:05:43 UTC) #14
commit-bot: I haz the power
4 years, 5 months ago (2016-07-18 16:07:06 UTC) #16
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/f0544fc6ed9a3477926b3640fae9706836f211ea
Cr-Commit-Position: refs/heads/master@{#406006}

Powered by Google App Engine
This is Rietveld 408576698