Chromium (or Google Chrome) on Debian (or Ubuntu) asking for login keyring password

I don’t store passwords in my browser so this feature is completely useless to me. I don’t even have “Offer to save your web passwords” checked in chrome://settings. Yet every time I launch Chromium I am prompted for my password to unlock my login keyring. I’m done with that.

1.) Copy the chromium.desktop file to our local applications folder:
cp /usr/share/applications/chromium.desktop ~/.local/share/applications/
If using the official Google Chrome, copy that .desktop file instead:
cp /usr/share/applications/google-chrome.desktop ~/.local/share/applications/

2.) Edit this newly copied file to add the –password-store=basic flag on the line beginning in ‘Exec’ (near the bottom of the file):
Exec=/usr/bin/chromium --password-store=basic --enable-remote-extensions %U
For offical Google Chrome, there will be multiple lines beginning with Exec. The first one in the file should be changed to this:
Exec=/usr/bin/google-chrome-stable --password-store=basic %U

I also added the –enable-remote-extensions flag so that Chromium again loads extensions. This is not necessary for official Google Chrome.

3.) Tell our system that we trust this new .desktop file by giving it execute permissions:
chmod +x ~/.local/share/applications/chromium.desktop
For official Google Chrome:
chmod +x ~/.local/share/applications/google-chrome.desktop

4.) If running gnome-shell, hit Alt+F2 and type the r key and hit Enter/Return to restart the window manager (and reload the local applications folder).

No more asking for login keyring passwords!