26150. (a) When a person applies for a license to carry a handgun, the sheriff of a county may shall issue a license to that person upon proof of all of the following:

(1) The applicant is of good moral character.

(2) Good cause, as determined pursuant to Section 26202, exists for issuance of the license.

(3) The applicant is a resident of the county or a city within the county, or the applicant’s principal place of employment or business is in the county or a city within the county and the applicant spends a substantial period of time in that place of employment or business.

(4) The applicant has completed a course of training as described in Section 26165.

(b) The sheriff may issue a license under subdivision (a) in either of the following formats:

(1) A license to carry a concealed handgun.

(2) Where the population of the county is less than 200,000 persons according to the most recent federal decennial census, a license to carry a loaded and exposed handgun in only that county.

(c) (1) Nothing in this This chapter shall does not preclude the sheriff of the county from entering into an agreement with the chief or other head of a municipal police department of a city to process all applications for licenses, renewals of licenses, or amendments to licenses pursuant to this chapter, in lieu of the sheriff.

(2) This subdivision shall only apply to applicants who reside within the city in which the chief or other head of the municipal police department has agreed to process applications for licenses, renewals of licenses, and amendments to licenses, pursuant to this chapter.