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

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

Created:
3 years, 6 months ago by gab
Modified:
3 years, 6 months ago
Reviewers:
Nico
CC:
chromium-reviews, tfarina, danakj+watch_chromium.org, sadrul, vmpstr+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Replace deprecated base::NonThreadSafe in base 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=thakis@chromium.org Review-Url: https://codereview.chromium.org/2907303002 Cr-Commit-Position: refs/heads/master@{#476274} Committed: https://chromium.googlesource.com/chromium/src/+/7d2fae4b6ab7843ec08e938f8cdaa38749d1187c

Patch Set 1 #

Total comments: 2

Patch Set 2 : rm sequence check in constructor #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -11 lines) Patch
M base/deferred_sequenced_task_runner_unittest.cc View 1 chunk +1 line, -3 lines 0 comments Download
M base/files/important_file_writer.h View 3 chunks +4 lines, -2 lines 0 comments Download
M base/files/important_file_writer.cc View 1 3 chunks +4 lines, -4 lines 0 comments Download
M base/message_loop/message_pump.h View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 25 (17 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:50:09 UTC) #2
Nico
1230/7627] CXX obj/content/browser/browser/video_capture_gpu_jpeg_decoder.o FAILED: obj/content/browser/browser/video_capture_gpu_jpeg_decoder.o /b/c/goma_client/gomacc ../../third_party/llvm-build/Release+Asserts/bin/clang++ -MMD -MF obj/content/browser/browser/video_capture_gpu_jpeg_decoder.o.d -DENABLE_SCREEN_CAPTURE=1 -DV8_DEPRECATION_WARNINGS -DDCHECK_ALWAYS_ON=1 -DUSE_AURA=1 -DUSE_NSS_CERTS=1 ...
3 years, 6 months ago (2017-05-30 03:01:56 UTC) #4
Nico
this lgtm; I think the red trybots are because many files used to accidentally pull ...
3 years, 6 months ago (2017-05-30 03:03:47 UTC) #7
gab
Yeah, IWYU errors... will wait for dependencies to flush out. https://codereview.chromium.org/2907303002/diff/1/base/files/important_file_writer.cc File base/files/important_file_writer.cc (right): https://codereview.chromium.org/2907303002/diff/1/base/files/important_file_writer.cc#newcode155 ...
3 years, 6 months ago (2017-05-30 14:46: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/2907303002/20001
3 years, 6 months ago (2017-05-31 17:31:47 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm64_dbg_recipe/builds/279715) android_clang_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, ...
3 years, 6 months ago (2017-05-31 17:38:31 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/2907303002/20001
3 years, 6 months ago (2017-06-01 13:59:11 UTC) #22
commit-bot: I haz the power
3 years, 6 months ago (2017-06-01 14:03:09 UTC) #25
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/7d2fae4b6ab7843ec08e938f8cda...

Powered by Google App Engine
This is Rietveld 408576698