Index: chrome/browser/chromeos/login/users/supervised_user_manager_impl.cc |
diff --git a/chrome/browser/chromeos/login/users/supervised_user_manager_impl.cc b/chrome/browser/chromeos/login/users/supervised_user_manager_impl.cc |
index 16a8f5b6c2c47886837f00bf31d14092157c187d..e745b54520179f14a0c5179187bf5b12c43ff645 100644 |
--- a/chrome/browser/chromeos/login/users/supervised_user_manager_impl.cc |
+++ b/chrome/browser/chromeos/login/users/supervised_user_manager_impl.cc |
@@ -134,7 +134,9 @@ SupervisedUserManagerImpl::SupervisedUserManagerImpl( |
ChromeUserManagerImpl* owner) |
: owner_(owner), cros_settings_(CrosSettings::Get()) { |
// SupervisedUserManager instance should be used only on UI thread. |
- DCHECK_CURRENTLY_ON(BrowserThread::UI); |
+ // (or in unit_tests) |
+ if (base::ThreadTaskRunnerHandle::IsSet()) |
+ DCHECK_CURRENTLY_ON(BrowserThread::UI); |
authentication_.reset(new SupervisedUserAuthentication(this)); |
} |