About Password Manager

456 views
Skip to first unread message

Tianyi Song

unread,
Oct 21, 2024, 5:32:01 PM10/21/24
to Chromium-dev
Hi, 

We are upgrading chromium from 114 to 126. It seems now on chrome if press password manager, it will just go to setting's password manager. 
May I know if the old feature saving password on local device is still available?

Thank you in advance for your help!

Tianyi

Vasilii Sukhanov

unread,
Oct 22, 2024, 12:07:31 PM10/22/24
to Chromium-dev, Tianyi Song
Hi Tianyi,
  1. What platform do you mean?
  2. Could you attach the screenshot of what you see after going to the settings?
Assuming you are talking about Android, yes, we still support local passwords. You can switch your account from the Google one to the "local" one in the top right corner.

Regards,
Vasilii

Tianyi Song

unread,
Oct 23, 2024, 12:44:11 PM10/23/24
to Chromium-dev, Vasilii Sukhanov, Tianyi Song
Hi Vasilii,

1. Yes I mean Android Platform.
2. Attached screenshot. 

To be more specific, we hope to get more information about the password manager for non-login users on Android Chromium. 
From the code we see we were using ProfilePasswordManager in chromium 114, and users who don't login Google account will save the passwords locally in the app. 
Then in chromium 126 we found there is a migration from ProfilePasswordManager to AccountPasswordManager for users that login Google account. When I tested in Chrome it will jump to the GMS password manager as attached screenshot. And non-login users can only still use ProfilePasswordManager (from my understanding). We want to know is there any plan to deprecate ProfilePasswordManager in the future (like people will only be able to save password if they login)? Since in that case we need to do some migration.

Thank you!

Best Regards,
Tianyi
0-02-06-29d3e9777c19d0a284cb51a9445898272cba6ef4de0f99a03547aea140481ff1_29254403321.jpg

Vasilii Sukhanov

unread,
Oct 23, 2024, 1:18:54 PM10/23/24
to tiany...@rakuten.com, Chromium-dev
Hi Tianyi,

In Chrome M124 the passwords were moved to be stored only inside Google Play service. They can be either synced to the Google account or local only based on the Chrome preferences as before. Thus, we support local passwords and will keep that support forever. The fact that they are physically stored in Play Services and not in the Chrome folder should be irrelevant for the password manager users.
In your screenshot I see that those passwords are local. Note the striked-out cloud icon in the top right corner.

Regards,
Vasilii

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to a topic in the Google Groups "Chromium-dev" group.
To unsubscribe from this topic, visit https://groups.google.com/a/chromium.org/d/topic/chromium-dev/VWkxRLk9SAQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to chromium-dev...@chromium.org.
To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/1ee61fab-7278-4493-9aae-16cd572d3550n%40chromium.org.

Tianyi Song

unread,
Oct 28, 2024, 1:23:49 PM10/28/24
to Chromium-dev, Vasilii Sukhanov, Chromium-dev, tiany...@rakuten.com
Hi Vasilii,

Sorry that I think my previous screenshot was kind of misleading. That was actually not the local passwords that I wanted to ask about.
I attached a new screenshot where we saw the saved local passwords in chromium 114. It was just in the app - settings - password manager. 
When I updated chromium 114 to chromium 126, these passwords disappeared and were not migrated to Play Service.  But it worked after I changed some flags in the code (to make it use the old backend for profile password manager). 
We hope to know for this kind of local passwords, will it still be supported in the future?

Thank you!

Best Regards,
Tianyi
0-02-06-e56f8cffdc52b8bde0fce982e0d88117d32805e05663bb9dd83c45c6c3e2648a_28cd09e1e67.jpg

Vasilii Sukhanov

unread,
Oct 28, 2024, 1:33:50 PM10/28/24
to tiany...@rakuten.com, Chromium-dev
Hi Tianyi,

All local passwords are supposed to be migrated in the background from Chrome profile to Play Service. No password loss is expected.
I don't recommend playing with flags as it really could bring you to a bad state. I recommend creating a new bug at crbug.com. The key information needed there is chrome://histograms/PasswordManager page collected a minute after start-up.

Regards,
Vasilii

Tianyi Song

unread,
Oct 1, 2025, 11:36:56 AM (yesterday) Oct 1
to Chromium-dev, Vasilii Sukhanov, Chromium-dev, tiany...@rakuten.com
Hi Vasilii,

We are migrating to chromium 138 for Android platform now, but it always shows "Password Manager stopped working on this device", and ask me to update Google Play Services, while it is already updated.
When I checked the code, I noticed this part
PasswordManagerHelper.showPasswordSettings ->
PasswordManagerHelper.showPwmUnavailableOrDownloadCsvDialog ->
checks PasswordManagerAndroidUtil::isPasswordManagerAvailable ->
checks PasswordManagerBackendSupportHelper::isBackendPresent -> always return false
which means password manager is always not available and it will not build the credential manager.
How can we make it work now? Is chromium still supporting password manager or only Google Chrome will support it?

Besides we noticed login database deprecation in the code, which mentioned it  is planned to be removed in Nov 2024. However I can still see the related classes in chromium 138, then in this case can we still access login database in chromium 138? I tried to enable use_login_database_as_backend but it did not work. We need to migrate our current app which is still using login database to chromium 138, do you have any suggestion to achieve that?

Looking forward to your reply. 

Best Regards,
Tianyi
pw3.png
pw2.png
pw1.png

Vasilii Sukhanov

unread,
10:56 AM (7 hours ago) 10:56 AM
to tiany...@rakuten.com, Chromium-dev
Hi Tianyi,

The code for LoginDatabase was finally removed from Chromium on Android. Thus, Chromium now uses the password manager that the user configured on Android.
If you want to keep LoginDatabase usage, you can resurrect its code and the `use_login_database_as_backend` flag in your checkout.

Regards,
Vasilii

Reply all
Reply to author
Forward
0 new messages