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

Issue 2915523002: Replace deprecated base::NonThreadSafe in extensions in favor of SequenceChecker. (Closed)

Created:
3 years, 6 months ago by gab
Modified:
3 years, 6 months ago
Reviewers:
Finnur, Devlin
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Replace deprecated base::NonThreadSafe in extensions in favor of SequenceChecker. Note to crash team: This CL is a refactor and has no intended behavior change. This change was scripted by https://crbug.com/676387#c8. Note-worthy for the reviewer: * SequenceChecker enforces thread-safety but not thread-affinity! If the classes that were updated are thread-affine (use thread local storage or a third-party API that does) they should be migrated to ThreadChecker instead. * ~NonThreadSafe() used to implicitly check in its destructor ~Sequence/ThreadChecker() doesn't by design. To keep this CL a no-op, an explicit check was added to the destructor of migrated classes. * NonThreadSafe used to provide access to subclasses, as such the |sequence_checker_| member was made protected rather than private where necessary. BUG=676387 This CL was uploaded by git cl split. R=finnur@chromium.org Review-Url: https://codereview.chromium.org/2915523002 Cr-Commit-Position: refs/heads/master@{#476280} Committed: https://chromium.googlesource.com/chromium/src/+/370841f24900462d5f74d2b4f96b7125d44eae37

Patch Set 1 #

Total comments: 6

Patch Set 2 : review:devlin #

Patch Set 3 : Add TestBrowserThreadBundle #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -31 lines) Patch
M extensions/browser/api/api_resource_manager.h View 4 chunks +3 lines, -3 lines 0 comments Download
M extensions/browser/extension_throttle_manager.h View 3 chunks +4 lines, -3 lines 0 comments Download
M extensions/browser/extension_throttle_manager.cc View 2 chunks +4 lines, -1 line 0 comments Download
M extensions/browser/quota_service.h View 1 3 chunks +4 lines, -2 lines 0 comments Download
M extensions/browser/quota_service.cc View 1 3 chunks +3 lines, -3 lines 0 comments Download
M extensions/browser/value_store/value_store_frontend.h View 1 2 chunks +1 line, -4 lines 0 comments Download
M extensions/browser/value_store/value_store_frontend.cc View 1 3 chunks +7 lines, -5 lines 0 comments Download
M extensions/browser/warning_service.h View 1 2 chunks +1 line, -4 lines 0 comments Download
M extensions/browser/warning_service.cc View 1 5 chunks +8 lines, -6 lines 0 comments Download
M extensions/browser/warning_service_unittest.cc View 1 2 3 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (18 generated)
gab
Hi, this is an automated change made by https://crbug.com/676387#c8 and sharded across directories for OWNERS. ...
3 years, 6 months ago (2017-05-30 02:58:55 UTC) #2
Finnur
Devlin is probably more appropriate for this.
3 years, 6 months ago (2017-05-30 13:31:48 UTC) #7
Devlin
cl description typo: implcitly -> implicitly https://codereview.chromium.org/2915523002/diff/1/extensions/browser/quota_service.h File extensions/browser/quota_service.h (right): https://codereview.chromium.org/2915523002/diff/1/extensions/browser/quota_service.h#newcode46 extensions/browser/quota_service.h:46: // and IO ...
3 years, 6 months ago (2017-05-30 19:06:47 UTC) #8
gab
Comments addressed, please CQ if LGTYs https://codereview.chromium.org/2915523002/diff/1/extensions/browser/quota_service.h File extensions/browser/quota_service.h (right): https://codereview.chromium.org/2915523002/diff/1/extensions/browser/quota_service.h#newcode46 extensions/browser/quota_service.h:46: // and IO ...
3 years, 6 months ago (2017-05-31 17:52:28 UTC) #13
Devlin
LGTM, but looks like a few tests are failing (I think we just need to ...
3 years, 6 months ago (2017-05-31 18:45:27 UTC) #16
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/2915523002/60001
3 years, 6 months ago (2017-05-31 19:07:14 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/397190)
3 years, 6 months ago (2017-05-31 21:39:31 UTC) #22
gab
On 2017/05/31 21:39:31, commit-bot: I haz the power wrote: > Try jobs failed on following ...
3 years, 6 months ago (2017-06-01 13:51:11 UTC) #23
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/2915523002/60001
3 years, 6 months ago (2017-06-01 13:51:23 UTC) #25
commit-bot: I haz the power
3 years, 6 months ago (2017-06-01 14:38:37 UTC) #28
Message was sent while issue was closed.
Committed patchset #3 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/370841f24900462d5f74d2b4f96b...

Powered by Google App Engine
This is Rietveld 408576698