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

Unified Diff: chrome/browser/browser_process_platform_part_chromeos.cc

Issue 2911983003: Replace deprecated base::NonThreadSafe in chrome 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/browser_process_platform_part_chromeos.h ('k') | chrome/browser/process_singleton.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browser_process_platform_part_chromeos.cc
diff --git a/chrome/browser/browser_process_platform_part_chromeos.cc b/chrome/browser/browser_process_platform_part_chromeos.cc
index c8340b71935b94a4d23e7d5dd152b939c0420ae3..08f4c210117ec9a77c6f951022bff53052d0a8eb 100644
--- a/chrome/browser/browser_process_platform_part_chromeos.cc
+++ b/chrome/browser/browser_process_platform_part_chromeos.cc
@@ -32,7 +32,9 @@
BrowserProcessPlatformPart::BrowserProcessPlatformPart()
: created_profile_helper_(false) {}
-BrowserProcessPlatformPart::~BrowserProcessPlatformPart() {}
+BrowserProcessPlatformPart::~BrowserProcessPlatformPart() {
+ DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
+}
void BrowserProcessPlatformPart::InitializeAutomaticRebootManager() {
DCHECK(!automatic_reboot_manager_);
@@ -95,7 +97,7 @@ void BrowserProcessPlatformPart::UnregisterKeepAlive() {
}
chromeos::ProfileHelper* BrowserProcessPlatformPart::profile_helper() {
- DCHECK(CalledOnValidThread());
+ DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
if (!created_profile_helper_)
CreateProfileHelper();
return profile_helper_.get();
« no previous file with comments | « chrome/browser/browser_process_platform_part_chromeos.h ('k') | chrome/browser/process_singleton.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698