What part of the eye or the brain decides which eye is dominant?

Occipital lobes. Vision comes from the occipital lobes of the brain. If one eye is closed or not working during early childhood then dominance is controlled by the neural network in the occipital lobe.