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

Issue 2918113004: Replace deprecated base::NonThreadSafe in /extensions/renderer/api/display_source in favor of Threa… (Closed)

Created:
3 years, 6 months ago by gab
Modified:
3 years, 6 months ago
Reviewers:
shalamov
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/renderer/api/display_source in favor of ThreadChecker. 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. (amend to use ThreadChecker instead of SequenceChecker to make this CL a no-op and expedite it per being the very last one!) 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. TBR=alexander.shalamov@intel.com Review-Url: https://codereview.chromium.org/2918113004 Cr-Commit-Position: refs/heads/master@{#476754} Committed: https://chromium.googlesource.com/chromium/src/+/db0d68b9a8438d6d8480f5372f984c035dfdae57

Patch Set 1 #

Patch Set 2 : Use ThreadChecker to be safe for now... #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -12 lines) Patch
M extensions/renderer/api/display_source/wifi_display/wifi_display_transport_stream_packetizer.h View 1 4 chunks +5 lines, -3 lines 0 comments Download
M extensions/renderer/api/display_source/wifi_display/wifi_display_transport_stream_packetizer.cc View 1 9 chunks +11 lines, -9 lines 0 comments Download

Messages

Total messages: 17 (12 generated)
gab
Hi, this is an automated change made by https://crbug.com/676387#c84 and sharded across directories for OWNERS. ...
3 years, 6 months ago (2017-06-02 18:04:36 UTC) #2
gab
Opted to use ThreadChecker to make this CL a true no-op (and allows TBR per ...
3 years, 6 months ago (2017-06-02 19:20:37 UTC) #9
gab
On 2017/06/02 19:20:37, gab wrote: > Opted to use ThreadChecker to make this CL a ...
3 years, 6 months ago (2017-06-02 19:21:01 UTC) #11
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/2918113004/20001
3 years, 6 months ago (2017-06-02 19:21:41 UTC) #14
commit-bot: I haz the power
3 years, 6 months ago (2017-06-02 19:33:59 UTC) #17
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/db0d68b9a8438d6d8480f5372f98...

Powered by Google App Engine
This is Rietveld 408576698