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

Issue 2912003002: Replace deprecated base::NonThreadSafe in chrome/browser/extensions in favor of SequenceChecker. (Closed)

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

Description

Replace deprecated base::NonThreadSafe in chrome/browser/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. ... and then replaced by DCHECK_CURRENTLY_ON(UI) per request. Which forced a fix to .../chromeos/printing/printers_manager_unittest.cc as its TestBrowserThreadBundle was initialized too late for TestingProfile's constructor (which would now crash in DCHECK_CURRENTLY_ON()), switched to using proper member stack ordering instead of trying to do more or less that but not quite correctly with heap allocations. BUG=676387 This CL was uploaded by git cl split. Review-Url: https://codereview.chromium.org/2912003002 Cr-Commit-Position: refs/heads/master@{#476061} Committed: https://chromium.googlesource.com/chromium/src/+/234cd78265fdc3965626d10b14d37e8b09b39c86

Patch Set 1 #

Total comments: 2

Patch Set 2 : DCHECK_CURRENTLY_ON(UI) #

Patch Set 3 : fix PrintersManagerTest #

Total comments: 6

Patch Set 4 : review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -54 lines) Patch
M chrome/browser/chromeos/printing/printers_manager_unittest.cc View 1 2 3 6 chunks +37 lines, -48 lines 0 comments Download
M chrome/browser/extensions/warning_badge_service.h View 1 2 chunks +1 line, -3 lines 0 comments Download
M chrome/browser/extensions/warning_badge_service.cc View 1 4 chunks +5 lines, -3 lines 0 comments Download

Messages

Total messages: 41 (28 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:41:57 UTC) #2
gab
s/lazyboy (OOO)/rdevlin.cronin/
3 years, 6 months ago (2017-05-30 02:57:59 UTC) #5
Devlin
https://codereview.chromium.org/2912003002/diff/1/chrome/browser/extensions/warning_badge_service.h File chrome/browser/extensions/warning_badge_service.h (right): https://codereview.chromium.org/2912003002/diff/1/chrome/browser/extensions/warning_badge_service.h#newcode53 chrome/browser/extensions/warning_badge_service.h:53: SEQUENCE_CHECKER(sequence_checker_); This class should only ever be used on ...
3 years, 6 months ago (2017-05-30 20:04:25 UTC) #8
gab
https://codereview.chromium.org/2912003002/diff/1/chrome/browser/extensions/warning_badge_service.h File chrome/browser/extensions/warning_badge_service.h (right): https://codereview.chromium.org/2912003002/diff/1/chrome/browser/extensions/warning_badge_service.h#newcode53 chrome/browser/extensions/warning_badge_service.h:53: SEQUENCE_CHECKER(sequence_checker_); On 2017/05/30 20:04:25, Devlin wrote: > This class ...
3 years, 6 months ago (2017-05-31 16:36:24 UTC) #10
gab
+Lei for corresponding fix to .../chromeos/printing/printers_manager_unittest.cc (it's TestBrowserThreadBundle was initialized too late for TestingProfile's constructor, ...
3 years, 6 months ago (2017-05-31 18:31:53 UTC) #19
Devlin
extensions lgtm
3 years, 6 months ago (2017-05-31 18:39:19 UTC) #21
Lei Zhang
Looking... +skau who actually wrote the printing code, FYI.
3 years, 6 months ago (2017-05-31 19:10:23 UTC) #24
Lei Zhang
- R= line is out of date in the CL description. - "git cl split" ...
3 years, 6 months ago (2017-05-31 19:14:23 UTC) #27
Lei Zhang
and otherwise lgtm
3 years, 6 months ago (2017-05-31 19:14:50 UTC) #28
skau
lgtm Just a request for a comment on the constructor as I tend to forget ...
3 years, 6 months ago (2017-05-31 19:22:10 UTC) #30
gab
https://codereview.chromium.org/2912003002/diff/40001/chrome/browser/chromeos/printing/printers_manager_unittest.cc File chrome/browser/chromeos/printing/printers_manager_unittest.cc (right): https://codereview.chromium.org/2912003002/diff/40001/chrome/browser/chromeos/printing/printers_manager_unittest.cc#newcode90 chrome/browser/chromeos/printing/printers_manager_unittest.cc:90: : manager_( On 2017/05/31 19:22:09, skau wrote: > Can ...
3 years, 6 months ago (2017-05-31 21:19:25 UTC) #34
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/2912003002/60001
3 years, 6 months ago (2017-05-31 21:20:36 UTC) #38
commit-bot: I haz the power
3 years, 6 months ago (2017-05-31 22:27:03 UTC) #41
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/234cd78265fdc3965626d10b14d3...

Powered by Google App Engine
This is Rietveld 408576698