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

Issue 2136563002: Remove calls to MessageLoop::current() in base. (Closed)

Created:
4 years, 5 months ago by fdoray
Modified:
4 years, 5 months ago
CC:
cbentzel+watch_chromium.org, chromium-reviews, darin-cc_chromium.org, davemoore+watch_chromium.org, feature-media-reviews_chromium.org, jam, johnme+watch_chromium.org, markusheintz_, mcasas+watch+vc_chromium.org, miu+watch_chromium.org, msramek+watch_chromium.org, oshima+watch_chromium.org, Peter Beverloo, sdefresne+watch_chromium.org, zea+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 calls to MessageLoop::current() in base. 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. Note: Some files outside of base/ had to be modified because they didn't compile anymore after #include "base/message_loop/message_loop.h" was removed from base/ headers. BUG=616447 TBR=rogerta@chromium.org Committed: https://crrev.com/e1e050c52c26c7e0232da4717564ac6d2f649fcd Cr-Commit-Position: refs/heads/master@{#406378}

Patch Set 1 #

Total comments: 4

Patch Set 2 : CR thestig #

Patch Set 3 : rebase #

Patch Set 4 : add missing include in external_data_use_reporter.h #

Patch Set 5 : restore dns_config_service_posix_unittest.cc #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+123 lines, -95 lines) Patch
M base/observer_list_threadsafe.h View 3 chunks +5 lines, -5 lines 0 comments Download
M base/power_monitor/power_monitor_device_source.cc View 2 chunks +2 lines, -1 line 0 comments Download
M base/power_monitor/power_monitor_device_source_win.cc View 1 1 chunk +3 lines, -1 line 0 comments Download
M base/threading/thread.h View 1 5 chunks +8 lines, -6 lines 1 comment Download
M base/threading/thread.cc View 6 chunks +18 lines, -13 lines 0 comments Download
M chrome/browser/android/data_usage/external_data_use_reporter.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chromeos/policy/android_management_client_unittest.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/printing/cloud_print/privet_notifications_unittest.cc View 1 chunk +1 line, -0 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_settings_test_utils.h View 1 chunk +1 line, -0 lines 0 comments Download
M components/data_use_measurement/content/data_use_measurement_unittest.cc View 1 chunk +1 line, -0 lines 0 comments Download
M components/gcm_driver/gcm_account_tracker_unittest.cc View 1 chunk +1 line, -0 lines 0 comments Download
M components/omnibox/browser/bookmark_provider_unittest.cc View 1 chunk +1 line, -0 lines 0 comments Download
M components/policy/core/common/cloud/cloud_policy_client_unittest.cc View 1 chunk +1 line, -0 lines 0 comments Download
M components/policy/core/common/cloud/cloud_policy_core_unittest.cc View 1 chunk +1 line, -0 lines 0 comments Download
M components/signin/core/browser/account_tracker_service_unittest.cc View 1 chunk +1 line, -0 lines 0 comments Download
M components/ssl_errors/error_classification_unittest.cc View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/browser_thread_impl.h View 2 chunks +8 lines, -8 lines 0 comments Download
M content/browser/browser_thread_impl.cc View 1 2 3 chunks +23 lines, -25 lines 0 comments Download
M dbus/test_service.h View 1 chunk +1 line, -1 line 0 comments Download
M dbus/test_service.cc View 3 chunks +3 lines, -2 lines 0 comments Download
M google_apis/gaia/gaia_auth_fetcher_unittest.cc View 1 chunk +1 line, -0 lines 0 comments Download
M google_apis/gaia/gaia_oauth_client_unittest.cc View 1 chunk +1 line, -0 lines 0 comments Download
M ios/chrome/browser/net/retryable_url_fetcher_unittest.mm View 1 chunk +1 line, -0 lines 0 comments Download
M ios/web/web_thread_impl.h View 2 chunks +7 lines, -7 lines 0 comments Download
M ios/web/web_thread_impl.cc View 2 chunks +22 lines, -21 lines 0 comments Download
M media/capture/system_message_window_win_unittest.cc View 1 chunk +1 line, -0 lines 0 comments Download
M net/cert_net/nss_ocsp.cc View 1 chunk +1 line, -0 lines 0 comments Download
M net/dns/dns_config_service_posix_unittest.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M net/quic/quic_end_to_end_unittest.cc View 6 chunks +6 lines, -5 lines 0 comments Download

Messages

Total messages: 41 (20 generated)
fdoray
Can you review this CL? Thanks.
4 years, 5 months ago (2016-07-08 18:11:28 UTC) #3
Lei Zhang
lgtm, I looked over most of the CL except a few files with a +1 ...
4 years, 5 months ago (2016-07-08 19:21:43 UTC) #4
fdoray
jochen@chromium.org: Can you review content/? hashimoto@chromium.org: Can you review dbus/? droger@chromium.org: Can you review ios/? ...
4 years, 5 months ago (2016-07-08 19:32:22 UTC) #6
fdoray
jochen@chromium.org: Can you review content/? hashimoto@chromium.org: Can you review dbus/? sdefresne@chromium.org: Can you review ios/? ...
4 years, 5 months ago (2016-07-08 19:34:11 UTC) #9
chcunningham
lgtm
4 years, 5 months ago (2016-07-08 19:41:01 UTC) #10
droger
ios lgtm
4 years, 5 months ago (2016-07-09 23:13:56 UTC) #12
hashimoto
dbus/ lgtm
4 years, 5 months ago (2016-07-11 03:50:21 UTC) #13
jochen (gone - plz use gerrit)
lgtm
4 years, 5 months ago (2016-07-11 14:36:32 UTC) #14
agl
net/ LGTM
4 years, 5 months ago (2016-07-11 15:29:19 UTC) #15
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/2136563002/40001
4 years, 5 months ago (2016-07-18 15:03:56 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/105542)
4 years, 5 months ago (2016-07-18 16:34:10 UTC) #22
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/2136563002/40001
4 years, 5 months ago (2016-07-18 17:19:59 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/105710)
4 years, 5 months ago (2016-07-18 18:43:30 UTC) #26
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/2136563002/40001
4 years, 5 months ago (2016-07-18 21:34:07 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/105894)
4 years, 5 months ago (2016-07-18 22:18:15 UTC) #30
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/2136563002/80001
4 years, 5 months ago (2016-07-19 18:36:22 UTC) #33
Roger Tawa OOO till Jul 10th
lgtm google_apis
4 years, 5 months ago (2016-07-19 20:07:24 UTC) #34
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 5 months ago (2016-07-19 21:06:12 UTC) #36
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-19 21:06:25 UTC) #37
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/e1e050c52c26c7e0232da4717564ac6d2f649fcd Cr-Commit-Position: refs/heads/master@{#406378}
4 years, 5 months ago (2016-07-19 21:08:10 UTC) #39
gab
4 years, 5 months ago (2016-07-21 19:10:51 UTC) #41
Message was sent while issue was closed.
https://codereview.chromium.org/2136563002/diff/80001/base/threading/thread.h
File base/threading/thread.h (right):

https://codereview.chromium.org/2136563002/diff/80001/base/threading/thread.h...
base/threading/thread.h:247: RunLoop* run_loop_;
Note: this turns out to not be relevant in this specific case but this variable
isn't initialized in constructor, fixed in
https://codereview.chromium.org/2145463002 :-)

Powered by Google App Engine
This is Rietveld 408576698