Index: chrome/test/base/testing_profile.cc |
diff --git a/chrome/test/base/testing_profile.cc b/chrome/test/base/testing_profile.cc |
index c43d29fdee2dbfb04d59119c832b39124fcdedb7..1e3948f41a00160ee2c21290073f00e4a180bb50 100644 |
--- a/chrome/test/base/testing_profile.cc |
+++ b/chrome/test/base/testing_profile.cc |
@@ -426,6 +426,14 @@ void TestingProfile::Init() { |
content::BrowserThread::UI) || |
content::BrowserThread::CurrentlyOn(content::BrowserThread::UI)); |
+#if defined(OS_CHROMEOS) |
+ if (!chromeos::DeviceSettingsService::IsInitialized()) |
+ test_device_settings_.reset(new chromeos::ScopedTestDeviceSettingsService); |
+ |
+ if (!chromeos::CrosSettings::IsInitialized()) |
+ test_cros_settings_.reset(new chromeos::ScopedTestCrosSettings); |
+#endif |
+ |
set_is_guest_profile(guest_session_); |
BrowserContext::Initialize(this, profile_path_); |