Restrict the country in shipping and billing address of a customer in the website based on the customer subsidiary

Requirement is to restrict the country in shipping and billing address of a customer in the website based on the customer subsidiary in myaccount and checkout pages.   For that we need to extend the’ Global.Views.Countries.Dropdown.View’ and adding the code below