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

Issue 2537893002: Add thread checking to RunLoop, deprecate MessageLoopRunner. (Closed)

Created:
4 years ago by Alexander Semashko
Modified:
4 years ago
CC:
chromium-reviews, extensions-reviews_chromium.org, sadrul, vmpstr+watch_chromium.org, tfarina, yamaguchi+watch_chromium.org, oka+watch_chromium.org, jam, chromium-apps-reviews_chromium.org, rginda+watch_chromium.org, darin-cc_chromium.org, sync-reviews_chromium.org, oshima+watch_chromium.org, fukino+watch_chromium.org, kalyank, davemoore+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add thread checker to base::RunLoop. The purpose is to make sure that after switching users of MessageLoopRunner to RunLoop we won't lose any correctness checks. Also add a comment that encourages to use RunLoop where possible, and rename GetQuitTaskForRunLoop to GetDeferredQuitTaskForRunLoop to convey is purpose clearly. BUG=668707 Committed: https://crrev.com/dd10720676efff002490f702118e052dcd210f18 Cr-Commit-Position: refs/heads/master@{#435924}

Patch Set 1 #

Patch Set 2 : Add missing include. #

Patch Set 3 : No thread checks when getting closures. #

Patch Set 4 : Fix errors caught by ThreadChecker. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -37 lines) Patch
M base/run_loop.h View 1 2 chunks +3 lines, -0 lines 2 comments Download
M base/run_loop.cc View 1 2 3 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/file_manager/zip_file_creator_browsertest.cc View 2 chunks +8 lines, -10 lines 0 comments Download
M chrome/browser/sync/test/integration/dictionary_helper.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/sync_file_system/sync_file_system_service_unittest.cc View 1 2 3 2 chunks +4 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/ash/tab_scrubber_browsertest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/base/testing_profile.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/loader/async_revalidation_manager_browsertest.cc View 1 2 3 1 chunk +4 lines, -2 lines 0 comments Download
M content/public/test/test_launcher.h View 2 chunks +0 lines, -3 lines 0 comments Download
M content/public/test/test_utils.h View 2 chunks +7 lines, -1 line 0 comments Download
M content/public/test/test_utils.cc View 3 chunks +3 lines, -12 lines 0 comments Download
M extensions/test/result_catcher.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 32 (20 generated)
Alexander Semashko
Please take a look.
4 years ago (2016-11-30 10:25:38 UTC) #14
Finnur
When you have multiple reviewers assigned, it helps in general if you state what you ...
4 years ago (2016-11-30 11:32:46 UTC) #18
Alexander Semashko
On 2016/11/30 11:32:46, Finnur wrote: > When you have multiple reviewers assigned, it helps in ...
4 years ago (2016-11-30 11:42:43 UTC) #19
Avi (use Gerrit)
lgtm
4 years ago (2016-11-30 17:19:37 UTC) #20
asargent_no_longer_on_chrome
extensions lgtm
4 years ago (2016-11-30 18:28:29 UTC) #21
Nico
lgtm, thanks! https://codereview.chromium.org/2537893002/diff/20002/base/run_loop.h File base/run_loop.h (right): https://codereview.chromium.org/2537893002/diff/20002/base/run_loop.h#newcode109 base/run_loop.h:109: base::ThreadChecker thread_checker_; should this be in an ...
4 years ago (2016-12-02 01:10:35 UTC) #22
Alexander Semashko
https://codereview.chromium.org/2537893002/diff/20002/base/run_loop.h File base/run_loop.h (right): https://codereview.chromium.org/2537893002/diff/20002/base/run_loop.h#newcode109 base/run_loop.h:109: base::ThreadChecker thread_checker_; On 2016/12/02 01:10:35, Nico wrote: > should ...
4 years ago (2016-12-02 10:47:34 UTC) #23
Nico
Sounds good, please land :-) Maybe we can try to figure out why ThreadChecker is ...
4 years ago (2016-12-02 11:22:10 UTC) #24
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/2537893002/20002
4 years ago (2016-12-02 11:25:07 UTC) #26
commit-bot: I haz the power
Committed patchset #4 (id:20002)
4 years ago (2016-12-02 12:33:04 UTC) #29
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/dd10720676efff002490f702118e052dcd210f18 Cr-Commit-Position: refs/heads/master@{#435924}
4 years ago (2016-12-02 12:34:29 UTC) #31
Ken Rockot(use gerrit already)
4 years ago (2016-12-02 21:30:48 UTC) #32
Message was sent while issue was closed.
A revert of this CL (patchset #4 id:20002) has been created in
https://codereview.chromium.org/2548883002/ by rockot@chromium.org.

The reason for reverting is: Speculative revert in an effort to pinpoint the
cause of http://crbug.com/670844 - will reland if the flake doesn't clear.

Powered by Google App Engine
This is Rietveld 408576698