Index: chrome/browser/extensions/external_policy_extension_provider_unittest.cc |
diff --git a/chrome/browser/extensions/external_policy_extension_provider_unittest.cc b/chrome/browser/extensions/external_policy_extension_provider_unittest.cc |
index 9c3056abca2f53ad6a9e4ed8572c6fc5564515a5..a5ea3d1f3450b3d5abe7529ecf7cba47c20b3893 100644 |
--- a/chrome/browser/extensions/external_policy_extension_provider_unittest.cc |
+++ b/chrome/browser/extensions/external_policy_extension_provider_unittest.cc |
@@ -25,9 +25,7 @@ class MockExternalPolicyExtensionProviderVisitor |
void Visit(ListValue* policy_forcelist, |
ListValue* policy_validlist, |
const std::set<std::string>& ignore_list) { |
- provider_.reset(new ExternalPolicyExtensionProvider()); |
- // Give the list extensions to the provider. |
- provider_->SetPreferences(policy_forcelist); |
+ provider_.reset(new ExternalPolicyExtensionProvider(policy_forcelist)); |
// Extensions will be removed from this list as they visited, |
// so it should be emptied by the end. |