"Smoke-free" apartments are common these days. Though not codified into municipal law, apartment complexes with smoking prohibitions written into their leases are all everywhere these days --and not just in California.
If you are a smoker, it's getting harder and harder to find apartments that will accommodate you.
I am not really a smoker (a couple of cigars a year, usually outside in the summer) so I do not have a vested interest in this accept as an American who cares about the liberty our founding fathers fought and died to give to us.
I have no problem with an apartment owner placing restrictions in the lease contract on the activities of renters. That is a contract freely entered in to by two individuals for the mutual benefit of both.
The government has no vested interest in the contractual agreement of a renter and his landlord other than the taxes collected from either or both. The city government has no right to place such a restriction on property owners.