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

Unified Diff: components/keyed_service/content/browser_context_keyed_base_factory.cc

Issue 2910053002: Replace deprecated base::NonThreadSafe in components/keyed_service in favor of SequenceChecker. (Closed)
Patch Set: add matching keyed_service\ios tweaks 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 | « no previous file | components/keyed_service/content/browser_context_keyed_service_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/keyed_service/content/browser_context_keyed_base_factory.cc
diff --git a/components/keyed_service/content/browser_context_keyed_base_factory.cc b/components/keyed_service/content/browser_context_keyed_base_factory.cc
index 7c2d8b797c54c8592e6685996e1bb26ec5e710d4..4c8aba3bde5292a18720eadd7de3babba3c839f2 100644
--- a/components/keyed_service/content/browser_context_keyed_base_factory.cc
+++ b/components/keyed_service/content/browser_context_keyed_base_factory.cc
@@ -19,7 +19,7 @@ BrowserContextKeyedBaseFactory::~BrowserContextKeyedBaseFactory() {
content::BrowserContext* BrowserContextKeyedBaseFactory::GetBrowserContextToUse(
content::BrowserContext* context) const {
// TODO(crbug.com/701326): This DCHECK should be moved to GetContextToUse().
- DCHECK(CalledOnValidThread());
+ DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
// Safe default for the Incognito mode: no service.
if (context->IsOffTheRecord())
« no previous file with comments | « no previous file | components/keyed_service/content/browser_context_keyed_service_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698