Index: chrome/browser/chromeos/extensions/device_local_account_external_policy_loader_unittest.cc |
diff --git a/chrome/browser/chromeos/extensions/device_local_account_external_policy_loader_unittest.cc b/chrome/browser/chromeos/extensions/device_local_account_external_policy_loader_unittest.cc |
index 202d2cea8b4ed2643fd44b9b7f4cf1d6067056b4..62e70931efab459d203aa63f40e8e60d7f356371 100644 |
--- a/chrome/browser/chromeos/extensions/device_local_account_external_policy_loader_unittest.cc |
+++ b/chrome/browser/chromeos/extensions/device_local_account_external_policy_loader_unittest.cc |
@@ -27,6 +27,7 @@ |
#include "components/policy/core/common/policy_types.h" |
#include "content/public/browser/notification_service.h" |
#include "content/public/browser/notification_source.h" |
+#include "content/public/browser/shell_context.h" |
#include "content/public/test/test_browser_thread_bundle.h" |
#include "content/public/test/test_utils.h" |
#include "extensions/browser/external_install_info.h" |
@@ -112,6 +113,7 @@ class DeviceLocalAccountExternalPolicyLoaderTest : public testing::Test { |
void SetForceInstallListPolicy(); |
content::TestBrowserThreadBundle thread_bundle_; |
+ std::unique_ptr<content::ShellContext> shell_context_; |
base::ScopedTempDir temp_dir_; |
base::FilePath cache_dir_; |
policy::MockCloudPolicyStore store_; |
@@ -140,6 +142,7 @@ DeviceLocalAccountExternalPolicyLoaderTest:: |
} |
void DeviceLocalAccountExternalPolicyLoaderTest::SetUp() { |
+ shell_context_ = content::ShellContext::Create(); |
ASSERT_TRUE(temp_dir_.CreateUniqueTempDir()); |
cache_dir_ = temp_dir_.path().Append(kCacheDir); |
ASSERT_TRUE(base::CreateDirectoryAndGetError(cache_dir_, NULL)); |