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

Issue 2598113002: [Sync] Use a proto to generate AutofillSyncStorageKey's storage keys. (Closed)

Created:
3 years, 12 months ago by skym
Modified:
3 years, 11 months ago
Reviewers:
Mathieu, pavely
CC:
chromium-reviews, rouslan+autofill_chromium.org, sebsg+autofillwatch_chromium.org, browser-components-watch_chromium.org, mathp+autofillwatch_chromium.org, vabr+watchlistautofill_chromium.org, Patrick Noland, maxbogue, Gang Wu
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Sync] Use a proto to generate AutofillSyncStorageKey's storage keys. Previously we were going to use a | delimiter and manually construct storage keys ourselves. The requires us to write logic to reverse it, and is inefficient when encoding characters that need to be escaped. The disadvantages are that we always have 4 bytes (instead of 1) of overhead, and printing the string is less readable. BUG=675992 Review-Url: https://codereview.chromium.org/2598113002 Cr-Commit-Position: refs/heads/master@{#442011} Committed: https://chromium.googlesource.com/chromium/src/+/ba936951fafeeb20fe1ecb72e3ec40b98bce9fee

Patch Set 1 #

Total comments: 1

Patch Set 2 : Rebased #

Total comments: 11

Patch Set 3 : Rebased and updated for comments. #

Total comments: 6

Patch Set 4 : Updated for mathp's comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+131 lines, -29 lines) Patch
M components/autofill/core/browser/proto/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
A components/autofill/core/browser/proto/autofill_sync.proto View 1 2 3 1 chunk +17 lines, -0 lines 0 comments Download
M components/autofill/core/browser/webdata/autocomplete_sync_bridge.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M components/autofill/core/browser/webdata/autocomplete_sync_bridge.cc View 1 2 3 8 chunks +28 lines, -23 lines 0 comments Download
M components/autofill/core/browser/webdata/autocomplete_sync_bridge_unittest.cc View 1 2 6 chunks +82 lines, -6 lines 0 comments Download

Messages

Total messages: 35 (22 generated)
skym
I thought we were planning on using a proto for storage keys, not a delimiter ...
3 years, 12 months ago (2016-12-23 00:34:09 UTC) #5
Patrick Noland
On 2016/12/23 00:34:09, skym wrote: > I thought we were planning on using a proto ...
3 years, 11 months ago (2017-01-03 20:08:16 UTC) #8
Patrick Noland
On 2017/01/03 20:08:16, Patrick Noland wrote: > On 2016/12/23 00:34:09, skym wrote: > > I ...
3 years, 11 months ago (2017-01-03 22:00:36 UTC) #9
skym
Okay, I think we should do this. The things I'm considering for changing to protos ...
3 years, 11 months ago (2017-01-04 00:09:00 UTC) #12
skym
Okay, I think we should do this. The things I'm considering for changing to protos ...
3 years, 11 months ago (2017-01-04 00:09:00 UTC) #13
maxbogue
I noticed you removed me as a reviewer after I started so you're stuck with ...
3 years, 11 months ago (2017-01-04 01:42:46 UTC) #17
pavely
lgtm % Max's comments https://codereview.chromium.org/2598113002/diff/20001/components/autofill/core/browser/proto/autofill_sync.proto File components/autofill/core/browser/proto/autofill_sync.proto (right): https://codereview.chromium.org/2598113002/diff/20001/components/autofill/core/browser/proto/autofill_sync.proto#newcode12 components/autofill/core/browser/proto/autofill_sync.proto:12: // given to Sync to ...
3 years, 11 months ago (2017-01-04 18:09:56 UTC) #18
skym
Adding mathp@ for autofill owner. PTAL. https://codereview.chromium.org/2598113002/diff/20001/components/autofill/core/browser/proto/autofill_sync.proto File components/autofill/core/browser/proto/autofill_sync.proto (right): https://codereview.chromium.org/2598113002/diff/20001/components/autofill/core/browser/proto/autofill_sync.proto#newcode12 components/autofill/core/browser/proto/autofill_sync.proto:12: // given to ...
3 years, 11 months ago (2017-01-05 01:31:51 UTC) #22
skym
Whoops, switching to @chromium account for mathp@. PTAL!
3 years, 11 months ago (2017-01-06 00:03:52 UTC) #27
Mathieu
sorry for the delay, I really missed this! lgtm with nits https://codereview.chromium.org/2598113002/diff/40001/components/autofill/core/browser/proto/BUILD.gn File components/autofill/core/browser/proto/BUILD.gn (right): ...
3 years, 11 months ago (2017-01-06 01:51:29 UTC) #28
skym
https://codereview.chromium.org/2598113002/diff/40001/components/autofill/core/browser/proto/BUILD.gn File components/autofill/core/browser/proto/BUILD.gn (right): https://codereview.chromium.org/2598113002/diff/40001/components/autofill/core/browser/proto/BUILD.gn#newcode9 components/autofill/core/browser/proto/BUILD.gn:9: "autofill_sync.proto", On 2017/01/06 01:51:29, Mathieu Perreault wrote: > why ...
3 years, 11 months ago (2017-01-06 18:29:04 UTC) #29
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/2598113002/60001
3 years, 11 months ago (2017-01-06 18:30:06 UTC) #32
commit-bot: I haz the power
3 years, 11 months ago (2017-01-06 19:44:05 UTC) #35
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/ba936951fafeeb20fe1ecb72e3ec...

Powered by Google App Engine
This is Rietveld 408576698