Index: chrome/browser/chromeos/login/quick_unlock/pin_storage_unittest.cc |
diff --git a/chrome/browser/chromeos/login/quick_unlock/pin_storage_unittest.cc b/chrome/browser/chromeos/login/quick_unlock/pin_storage_unittest.cc |
index 62218bf5338322fb629ce6bbdd5eee826e44ee38..de8cabd5cd1c174576ebf6b05ac61000837502e1 100644 |
--- a/chrome/browser/chromeos/login/quick_unlock/pin_storage_unittest.cc |
+++ b/chrome/browser/chromeos/login/quick_unlock/pin_storage_unittest.cc |
@@ -8,6 +8,7 @@ |
#include "chrome/common/pref_names.h" |
#include "chrome/test/base/testing_profile.h" |
#include "components/prefs/pref_service.h" |
+#include "content/public/test/test_browser_thread_bundle.h" |
#include "testing/gtest/include/gtest/gtest.h" |
namespace { |
@@ -21,6 +22,7 @@ class PinStorageUnitTest : public testing::Test { |
void SetUp() override { chromeos::EnableQuickUnlockForTesting(); } |
std::unique_ptr<TestingProfile> profile_; |
+ content::TestBrowserThreadBundle thread_bundle_; |
alokp
2016/08/16 13:19:47
does thread_bundle_ need to outlive profile_?
horo
2016/08/16 13:39:10
yes.
Without thread_bundle_, "DCHECK(current);" in
|
DISALLOW_COPY_AND_ASSIGN(PinStorageUnitTest); |
}; |