| Index: chrome/test/base/testing_profile.cc
|
| diff --git a/chrome/test/base/testing_profile.cc b/chrome/test/base/testing_profile.cc
|
| index f53c423f91e34d28e56b3ee9ee497b50635c6201..b301b5ac2d6f91a50750a44f72c1b56409e89880 100644
|
| --- a/chrome/test/base/testing_profile.cc
|
| +++ b/chrome/test/base/testing_profile.cc
|
| @@ -81,6 +81,11 @@
|
| #include "chrome/browser/policy/policy_service_stub.h"
|
| #endif // defined(ENABLE_CONFIGURATION_POLICY)
|
|
|
| +#if defined(ENABLE_MANAGED_USERS)
|
| +#include "chrome/browser/managed_mode/managed_user_settings_service.h"
|
| +#include "chrome/browser/managed_mode/managed_user_settings_service_factory.h"
|
| +#endif
|
| +
|
| using base::Time;
|
| using content::BrowserThread;
|
| using content::DownloadManagerDelegate;
|
| @@ -332,6 +337,14 @@ void TestingProfile::Init() {
|
| DesktopNotificationServiceFactory::GetInstance()->SetTestingFactory(
|
| this, CreateTestDesktopNotificationService);
|
| #endif
|
| +
|
| +#if defined(ENABLE_MANAGED_USERS)
|
| + ManagedUserSettingsService* settings_service =
|
| + ManagedUserSettingsServiceFactory::GetForProfile(this);
|
| + TestingPrefStore* store = new TestingPrefStore();
|
| + settings_service->Init(store);
|
| + store->SetInitializationCompleted();
|
| +#endif
|
| }
|
|
|
| void TestingProfile::FinishInit() {
|
|
|