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

Unified Diff: chrome/browser/printing/background_printing_manager.cc

Issue 2908273002: Replace deprecated base::NonThreadSafe in chrome/browser/printing in favor of SequenceChecker. (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/printing/background_printing_manager.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/printing/background_printing_manager.cc
diff --git a/chrome/browser/printing/background_printing_manager.cc b/chrome/browser/printing/background_printing_manager.cc
index 6912ec1e5be8e0fb45015bc8a9d0f40e0d6c15f9..330ecb907e49b463e3e287048798c2e1f74f23bd 100644
--- a/chrome/browser/printing/background_printing_manager.cc
+++ b/chrome/browser/printing/background_printing_manager.cc
@@ -56,7 +56,7 @@ BackgroundPrintingManager::BackgroundPrintingManager() {
}
BackgroundPrintingManager::~BackgroundPrintingManager() {
- DCHECK(CalledOnValidThread());
+ DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
// The might be some WebContentses still in |printing_contents_map_| at this
// point (e.g. when the last remaining tab closes and there is still a print
// preview WebContents trying to print). In such a case it will fail to print,
@@ -66,7 +66,7 @@ BackgroundPrintingManager::~BackgroundPrintingManager() {
void BackgroundPrintingManager::OwnPrintPreviewDialog(
WebContents* preview_dialog) {
- DCHECK(CalledOnValidThread());
+ DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
DCHECK(PrintPreviewDialogController::IsPrintPreviewDialog(preview_dialog));
CHECK(!HasPrintPreviewDialog(preview_dialog));
« no previous file with comments | « chrome/browser/printing/background_printing_manager.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698