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

Issue 2909053003: Replace deprecated base::NonThreadSafe in content in favor of SequenceChecker. (Closed)

Created:
3 years, 6 months ago by gab
Modified:
3 years, 6 months ago
Reviewers:
Avi (use Gerrit)
CC:
chromium-reviews, jam, darin-cc_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Replace deprecated base::NonThreadSafe in content 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 implcitly 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=nasko@chromium.org Review-Url: https://codereview.chromium.org/2909053003 Cr-Commit-Position: refs/heads/master@{#475526} Committed: https://chromium.googlesource.com/chromium/src/+/a05726ef77312a57e1c392b8dac943abb0d97dc1

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -9 lines) Patch
M content/public/browser/notification_registrar.h View 3 chunks +4 lines, -3 lines 0 comments Download
M content/public/browser/notification_registrar.cc View 4 chunks +7 lines, -6 lines 0 comments Download

Messages

Total messages: 15 (8 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:32:13 UTC) #2
gab
s/nasko (OOO)/avi/ Thanks!
3 years, 6 months ago (2017-05-30 02:56:40 UTC) #5
Avi (use Gerrit)
This fails to compile: https://luci-logdog.appspot.com/v/?s=chromium%2Fbb%2Ftryserver.chromium.win%2Fwin_chromium_rel_ng%2F456642%2F%2B%2Frecipes%2Fsteps%2Fcompile__with_patch_%2F0%2Fstdout [34814/39429] CXX obj/chrome/browser/browser_2/jumplist_factory.obj FAILED: obj/chrome/browser/browser_2/jumplist_factory.obj E:\b\c\goma_client/gomacc.exe ../../third_party/llvm-build/Release+Asserts/bin/clang-cl.exe /nologo /showIncludes /FC ...
3 years, 6 months ago (2017-05-30 03:08:51 UTC) #6
gab
On 2017/05/30 03:08:51, Avi (ping after 24h) wrote: > This fails to compile: > > ...
3 years, 6 months ago (2017-05-30 03:11:59 UTC) #7
Avi (use Gerrit)
LGTM assuming the IWYU makes it turn green.
3 years, 6 months ago (2017-05-30 03:14:58 UTC) #8
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/2909053003/1
3 years, 6 months ago (2017-05-30 14:00:44 UTC) #12
commit-bot: I haz the power
3 years, 6 months ago (2017-05-30 15:05:07 UTC) #15
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/a05726ef77312a57e1c392b8dac9...

Powered by Google App Engine
This is Rietveld 408576698