| Index: components/keyed_service/ios/refcounted_browser_state_keyed_service_factory.cc | 
| diff --git a/components/keyed_service/ios/refcounted_browser_state_keyed_service_factory.cc b/components/keyed_service/ios/refcounted_browser_state_keyed_service_factory.cc | 
| index a1cb827db05d34f2d833137b971a18cb31151b42..a9abd88e52634595edea81c6bbdb366872c250e8 100644 | 
| --- a/components/keyed_service/ios/refcounted_browser_state_keyed_service_factory.cc | 
| +++ b/components/keyed_service/ios/refcounted_browser_state_keyed_service_factory.cc | 
| @@ -49,12 +49,9 @@ RefcountedBrowserStateKeyedServiceFactory::GetServiceForBrowserState( | 
| web::BrowserState* | 
| RefcountedBrowserStateKeyedServiceFactory::GetBrowserStateToUse( | 
| web::BrowserState* context) const { | 
| +  // TODO(crbug.com/701326): This DCHECK should be moved to GetContextToUse(). | 
| DCHECK(CalledOnValidThread()); | 
|  | 
| -#ifndef NDEBUG | 
| -  AssertContextWasntDestroyed(context); | 
| -#endif | 
| - | 
| // Safe default for Incognito mode: no service. | 
| if (context->IsOffTheRecord()) | 
| return nullptr; | 
| @@ -96,6 +93,7 @@ bool RefcountedBrowserStateKeyedServiceFactory::IsOffTheRecord( | 
| base::SupportsUserData* | 
| RefcountedBrowserStateKeyedServiceFactory::GetContextToUse( | 
| base::SupportsUserData* context) const { | 
| +  AssertContextWasntDestroyed(context); | 
| return GetBrowserStateToUse(static_cast<web::BrowserState*>(context)); | 
| } | 
|  | 
|  |