Index: chrome/test/testing_browser_process.cc |
diff --git a/chrome/test/testing_browser_process.cc b/chrome/test/testing_browser_process.cc |
index 21721696064ef067c15c9a46443c1d56abe87932..a22ad64d485195a9b8ec28463894a41f1862b7ad 100644 |
--- a/chrome/test/testing_browser_process.cc |
+++ b/chrome/test/testing_browser_process.cc |
@@ -9,6 +9,10 @@ |
#include "chrome/browser/google/google_url_tracker.h" |
#include "chrome/browser/notifications/notification_ui_manager.h" |
#include "chrome/browser/policy/browser_policy_connector.h" |
+#include "chrome/browser/policy/cloud_policy_cache_base.h" |
+#include "chrome/browser/policy/cloud_policy_provider.h" |
+#include "chrome/browser/policy/configuration_policy_pref_store.h" |
+#include "chrome/browser/policy/dummy_configuration_policy_provider.h" |
#include "chrome/browser/prefs/pref_service.h" |
#include "chrome/browser/prerender/prerender_tracker.h" |
#include "chrome/browser/printing/background_printing_manager.h" |
@@ -79,9 +83,10 @@ PrefService* TestingBrowserProcess::local_state() { |
policy::BrowserPolicyConnector* |
TestingBrowserProcess::browser_policy_connector() { |
- if (!browser_policy_connector_.get()) |
+ if (!browser_policy_connector_.get()) { |
browser_policy_connector_.reset( |
policy::BrowserPolicyConnector::CreateForTests()); |
+ } |
return browser_policy_connector_.get(); |
} |