Index: chrome/browser/ui/webui/options/preferences_browsertest.cc |
diff --git a/chrome/browser/ui/webui/options/preferences_browsertest.cc b/chrome/browser/ui/webui/options/preferences_browsertest.cc |
index c1fe97af57a9e689d25e73df9aa59d7510c06ce7..ff8cb04c7506da8fe50d971dda866a13b8266cfa 100644 |
--- a/chrome/browser/ui/webui/options/preferences_browsertest.cc |
+++ b/chrome/browser/ui/webui/options/preferences_browsertest.cc |
@@ -191,8 +191,6 @@ void PreferencesBrowserTest::SetUpInProcessBrowserTestFixture() { |
// Sets up a mock policy provider for user and device policies. |
EXPECT_CALL(policy_provider_, IsInitializationComplete(_)) |
.WillRepeatedly(Return(true)); |
- EXPECT_CALL(policy_provider_, RegisterPolicyDomain(_)) |
- .Times(AnyNumber()); |
policy::BrowserPolicyConnector::SetPolicyProviderForTesting( |
&policy_provider_); |
}; |