| Index: components/search_engines/default_search_policy_handler.cc
|
| diff --git a/components/search_engines/default_search_policy_handler.cc b/components/search_engines/default_search_policy_handler.cc
|
| index a2837ee8a1232e0a9a5df5dc1e99bd1ce4574e14..7c742da59031f4b2c2becd2d36e37c2c994781b9 100644
|
| --- a/components/search_engines/default_search_policy_handler.cc
|
| +++ b/components/search_engines/default_search_policy_handler.cc
|
| @@ -301,11 +301,13 @@ void DefaultSearchPolicyHandler::ApplyPolicySettings(const PolicyMap& policies,
|
| bool DefaultSearchPolicyHandler::CheckIndividualPolicies(
|
| const PolicyMap& policies,
|
| PolicyErrorMap* errors) {
|
| + bool all_ok = true;
|
| for (const auto& handler : handlers_) {
|
| - if (!handler->CheckPolicySettings(policies, errors))
|
| - return false;
|
| + // It's important to call CheckPolicySettings() on all handlers and not just
|
| + // exit on the first error, so we report all policy errors.
|
| + all_ok &= handler->CheckPolicySettings(policies, errors);
|
| }
|
| - return true;
|
| + return all_ok;
|
| }
|
|
|
| bool DefaultSearchPolicyHandler::HasDefaultSearchPolicy(
|
|
|