Index: chrome/browser/configuration_policy_provider_win_unittest.cc |
diff --git a/chrome/browser/configuration_policy_provider_win_unittest.cc b/chrome/browser/configuration_policy_provider_win_unittest.cc |
index 4d39ff62ae74afe913435553e434598cb5bf0478..ed66b4f88000b064e9cc7a249c509779ec04ae56 100644 |
--- a/chrome/browser/configuration_policy_provider_win_unittest.cc |
+++ b/chrome/browser/configuration_policy_provider_win_unittest.cc |
@@ -113,6 +113,12 @@ class ConfigurationPolicyProviderWinTest : public testing::Test { |
void TestBooleanPolicy(ConfigurationPolicyStore::PolicyType type); |
private: |
+ // A message loop must be declared and instantiated for these tests, |
+ // because Windows policy provider create WaitableEvents and |
+ // ObjectWatchers that require the tests to have a MessageLoop associated |
+ // with the thread executing the tests. |
+ MessageLoop loop_; |
+ |
// Keys are created for the lifetime of a test to contain |
// the sandboxed HKCU and HKLM hives, respectively. |
RegKey temp_hkcu_hive_key_; |