I wasn't referring to a browser setting. I meant the settings for Gmail itself.
If you open your Gmail account in your browser, and then go to the Gmail settings under the gear icon, you should see a setting for "Desktop Notifications" under "General".