| Index: chrome/browser/extensions/test_extension_system.cc
|
| diff --git a/chrome/browser/extensions/test_extension_system.cc b/chrome/browser/extensions/test_extension_system.cc
|
| index 4efca4fc2086849f68ec9bc727051a21e040fce2..1a183623543101e625e68fe269a18c0314ec907c 100644
|
| --- a/chrome/browser/extensions/test_extension_system.cc
|
| +++ b/chrome/browser/extensions/test_extension_system.cc
|
| @@ -33,6 +33,13 @@ namespace extensions {
|
| TestExtensionSystem::TestExtensionSystem(Profile* profile)
|
| : profile_(profile),
|
| info_map_(new ExtensionInfoMap()) {
|
| +#if defined OS_CHROMEOS
|
| + // TestExtensionSystem may or may not be created within
|
| + // TestExtensionEnvironment, so only create a ScopedTestCrosSettings instance
|
| + // if none has been created.
|
| + if (!chromeos::CrosSettings::IsInitialized())
|
| + test_cros_settings_.reset(new chromeos::ScopedTestCrosSettings);
|
| +#endif
|
| }
|
|
|
| TestExtensionSystem::~TestExtensionSystem() {
|
|
|