Who gets the dog in a divorce in California?

Who gets the dog in a divorce under the California Family Code? Who gets the dog in a divorce was...