Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(425)

Issue 2981293003: Save Android Autofill credentials in the right format. (Closed)

Created:
3 years, 5 months ago by vasilii
Modified:
3 years, 5 months ago
Reviewers:
engedy
CC:
chromium-reviews, gcasto+watchlist_chromium.org, vabr+watchlistpasswordmanager_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Save Android Autofill credentials in the right format. Android Autofill saves credentials in the wrong format. origin and signon_realm have no trailing '/' which prevents proper handling in Chrome. This CL migrates them to the proper format with '/'. The original entry stays on the server and it's kept up to date. In the future the credentials without '/' are to be removed from the Sync data. BUG=739101 Review-Url: https://codereview.chromium.org/2981293003 Cr-Commit-Position: refs/heads/master@{#488421} Committed: https://chromium.googlesource.com/chromium/src/+/17634c18f71fffdd50e973902aadb0e90207f4b6

Patch Set 1 #

Patch Set 2 : New algorithm #

Total comments: 31

Patch Set 3 : comments #

Patch Set 4 : test comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+964 lines, -94 lines) Patch
M components/password_manager/core/browser/password_syncable_service.h View 4 chunks +24 lines, -5 lines 0 comments Download
M components/password_manager/core/browser/password_syncable_service.cc View 1 2 10 chunks +354 lines, -52 lines 0 comments Download
M components/password_manager/core/browser/password_syncable_service_unittest.cc View 1 2 3 11 chunks +586 lines, -37 lines 0 comments Download

Messages

Total messages: 29 (15 generated)
vasilii
Hi Balasz, please review. I just realized that maybe my algorithm of always deleting the ...
3 years, 5 months ago (2017-07-19 18:55:32 UTC) #4
engedy
Very high level comment: as an alternative have you considered fixing the issue (by appending ...
3 years, 5 months ago (2017-07-20 08:36:22 UTC) #7
vasilii
On 2017/07/20 08:36:22, engedy wrote: > Very high level comment: as an alternative have you ...
3 years, 5 months ago (2017-07-20 08:56:32 UTC) #8
vasilii
I made the change we discussed. PTAL
3 years, 5 months ago (2017-07-20 15:05:43 UTC) #11
engedy
Comments and a couple question on the prod code. There are perhaps a couple of ...
3 years, 5 months ago (2017-07-20 18:34:15 UTC) #14
engedy
> Also, two extra questions: > -- We are never deleting local entries on start-up, ...
3 years, 5 months ago (2017-07-20 18:48:37 UTC) #15
engedy
LGTM % comments here and before. I only skimmed through the unit test. https://codereview.chromium.org/2981293003/diff/20001/components/password_manager/core/browser/password_syncable_service_unittest.cc File ...
3 years, 5 months ago (2017-07-20 19:13:07 UTC) #16
vasilii
On 2017/07/20 18:48:37, engedy wrote: > > Also, two extra questions: > > -- We ...
3 years, 5 months ago (2017-07-20 19:50:00 UTC) #19
vasilii
https://codereview.chromium.org/2981293003/diff/20001/components/password_manager/core/browser/password_syncable_service.cc File components/password_manager/core/browser/password_syncable_service.cc (right): https://codereview.chromium.org/2981293003/diff/20001/components/password_manager/core/browser/password_syncable_service.cc#newcode124 components/password_manager/core/browser/password_syncable_service.cc:124: std::string GetAndroidAutofillSignonRealm(std::string android_autofill_realm) { On 2017/07/20 18:34:14, engedy wrote: ...
3 years, 5 months ago (2017-07-20 19:50:18 UTC) #20
vasilii
https://codereview.chromium.org/2981293003/diff/20001/components/password_manager/core/browser/password_syncable_service_unittest.cc File components/password_manager/core/browser/password_syncable_service_unittest.cc (right): https://codereview.chromium.org/2981293003/diff/20001/components/password_manager/core/browser/password_syncable_service_unittest.cc#newcode765 components/password_manager/core/browser/password_syncable_service_unittest.cc:765: // Transforms |val| into |count| numbers from 0 to ...
3 years, 5 months ago (2017-07-20 19:54:47 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2981293003/60001
3 years, 5 months ago (2017-07-20 19:56:24 UTC) #24
engedy
> -- If the user deletes the correct local entry, it will be recreated on ...
3 years, 5 months ago (2017-07-20 20:11:08 UTC) #25
engedy
https://codereview.chromium.org/2981293003/diff/20001/components/password_manager/core/browser/password_syncable_service.cc File components/password_manager/core/browser/password_syncable_service.cc (right): https://codereview.chromium.org/2981293003/diff/20001/components/password_manager/core/browser/password_syncable_service.cc#newcode131 components/password_manager/core/browser/password_syncable_service.cc:131: std::string GetCorrectAndroidSignonRealm(std::string android_realm) { On 2017/07/20 19:50:17, vasilii wrote: ...
3 years, 5 months ago (2017-07-20 20:12:14 UTC) #26
commit-bot: I haz the power
3 years, 5 months ago (2017-07-20 21:48:56 UTC) #29
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/17634c18f71fffdd50e973902aad...

Powered by Google App Engine
This is Rietveld 408576698