Chromium Code Reviews
DescriptionReplace deprecated base::NonThreadSafe in /content/browser/speech 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#c84.
If you're wondering why there's a second wave of this, the first version of the
script handled "NON_EXPORTED_BASE(public base::NonThreadSafe)" but not
"public NON_EXPORTED_BASE(base::NonThreadSafe)"...
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=tommi@chromium.org
Review-Url: https://codereview.chromium.org/2919993002
Cr-Commit-Position: refs/heads/master@{#476748}
Committed: https://chromium.googlesource.com/chromium/src/+/2510d3fbc38be38f5c8cd870dc9d7329d0f43a99
Patch Set 1 #
Messages
Total messages: 13 (7 generated)
|
||||||||||||||||||||||||||||