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

Issue 10855037: [Sync] Add history delete directive type (Closed)

Created:
8 years, 4 months ago by akalin
Modified:
8 years, 2 months ago
CC:
chromium-reviews, ncarter (slow), Raghu Simha, cbentzel+watch_chromium.org, darin-cc_chromium.org, pam+watch_chromium.org, tim (not reviewing)
Visibility:
Public.

Description

[Sync] Add history delete directive type Add new HISTORY_DELETE_DIRECTIVE model type. Update everything that depends on model type. Rename SyncCryptographer test to Cryptographer (since it's already in sync_unit_tests). Add EncryptableUserTypes() function and use that instead of UserTypes() for encryption-related stuff. BUG=141245 TBR=jam@chromium.org Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=162323

Patch Set 1 #

Total comments: 21

Patch Set 2 : Address comments, sync to head #

Patch Set 3 : sync to head, add TODO #

Total comments: 5

Patch Set 4 : Fix test #

Patch Set 5 : Remove delete directives from nigori #

Patch Set 6 : Fix tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+199 lines, -45 lines) Patch
M chrome/browser/sync/glue/model_association_manager.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/sync/profile_sync_service.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/sync_prefs.cc View 1 2 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/common/pref_names.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/pref_names.cc View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M net/tools/testserver/chromiumsync.py View 1 5 chunks +8 lines, -1 line 0 comments Download
M sync/internal_api/public/base/model_type.h View 1 2 3 4 5 2 chunks +6 lines, -1 line 0 comments Download
M sync/internal_api/sync_encryption_handler_impl.cc View 1 2 3 4 5 5 chunks +8 lines, -8 lines 0 comments Download
M sync/internal_api/sync_encryption_handler_impl_unittest.cc View 1 2 3 4 5 8 chunks +14 lines, -10 lines 0 comments Download
M sync/internal_api/sync_manager_impl_unittest.cc View 1 2 3 4 5 7 chunks +11 lines, -9 lines 0 comments Download
A sync/protocol/history_delete_directive_specifics.proto View 1 2 3 4 1 chunk +42 lines, -0 lines 0 comments Download
M sync/protocol/nigori_specifics.proto View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M sync/protocol/proto_value_conversions.h View 1 2 3 4 4 chunks +21 lines, -0 lines 0 comments Download
M sync/protocol/proto_value_conversions.cc View 1 2 3 4 5 4 chunks +25 lines, -0 lines 0 comments Download
M sync/protocol/proto_value_conversions_unittest.cc View 1 2 3 4 5 3 chunks +6 lines, -1 line 0 comments Download
M sync/protocol/sync.proto View 1 2 3 4 5 2 chunks +2 lines, -0 lines 0 comments Download
M sync/protocol/sync_proto.gyp View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M sync/syncable/model_type.cc View 1 2 3 4 5 11 chunks +30 lines, -4 lines 0 comments Download
M sync/util/cryptographer_unittest.cc View 1 8 chunks +10 lines, -10 lines 0 comments Download
M sync/util/data_type_histogram.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (0 generated)
akalin
+zea for review
8 years, 4 months ago (2012-08-07 23:13:31 UTC) #1
Nicolas Zea
LGTM with some comment nits https://chromiumcodereview.appspot.com/10855037/diff/1/sync/protocol/history_delete_directive_specifics.proto File sync/protocol/history_delete_directive_specifics.proto (right): https://chromiumcodereview.appspot.com/10855037/diff/1/sync/protocol/history_delete_directive_specifics.proto#newcode19 sync/protocol/history_delete_directive_specifics.proto:19: // The full URL ...
8 years, 4 months ago (2012-08-08 01:26:18 UTC) #2
akalin
https://chromiumcodereview.appspot.com/10855037/diff/1/sync/protocol/history_delete_directive_specifics.proto File sync/protocol/history_delete_directive_specifics.proto (right): https://chromiumcodereview.appspot.com/10855037/diff/1/sync/protocol/history_delete_directive_specifics.proto#newcode19 sync/protocol/history_delete_directive_specifics.proto:19: // The full URL to delete. On 2012/08/08 01:26:19, ...
8 years, 4 months ago (2012-08-08 22:54:20 UTC) #3
Nicolas Zea
https://chromiumcodereview.appspot.com/10855037/diff/1/sync/protocol/history_delete_directive_specifics.proto File sync/protocol/history_delete_directive_specifics.proto (right): https://chromiumcodereview.appspot.com/10855037/diff/1/sync/protocol/history_delete_directive_specifics.proto#newcode19 sync/protocol/history_delete_directive_specifics.proto:19: // The full URL to delete. On 2012/08/08 22:54:20, ...
8 years, 4 months ago (2012-08-08 23:18:55 UTC) #4
akalin
On 2012/08/08 23:18:55, nzea wrote: > > Just to be clear, if it's not present ...
8 years, 4 months ago (2012-08-08 23:24:03 UTC) #5
Nicolas Zea
On 2012/08/08 23:24:03, akalin wrote: > On 2012/08/08 23:18:55, nzea wrote: > > > Just ...
8 years, 4 months ago (2012-08-08 23:45:27 UTC) #6
akalin
On 2012/08/08 23:45:27, nzea wrote: > So, my original thought here was that the web ...
8 years, 4 months ago (2012-08-08 23:48:06 UTC) #7
akalin
On 2012/08/08 23:48:06, akalin wrote: > On 2012/08/08 23:45:27, nzea wrote: > > So, my ...
8 years, 4 months ago (2012-08-08 23:48:39 UTC) #8
akalin
+raz for question
8 years, 4 months ago (2012-08-08 23:48:51 UTC) #9
Raz Mathias
On 2012/08/08 23:48:51, akalin wrote: > +raz for question Server-side we'll have both the client ...
8 years, 4 months ago (2012-08-09 00:50:45 UTC) #10
albertb
I'm joining the discussion a bit late, but since I'll be consuming this proto, I ...
8 years, 4 months ago (2012-08-09 12:44:11 UTC) #11
akalin
On 2012/08/09 12:44:11, albertb wrote: https://chromiumcodereview.appspot.com/10855037/diff/1/sync/protocol/history_delete_directive_specifics.proto#newcode25 > sync/protocol/history_delete_directive_specifics.proto:25: // above. > Why do the server-to-client ...
8 years, 4 months ago (2012-08-09 17:10:27 UTC) #12
Raz Mathias
Doing a server-code review, the units on timestamps got confusing. Can we rename the time-related ...
8 years, 2 months ago (2012-10-02 19:26:22 UTC) #13
akalin
Arise, CL, from the dead! PTAL! http://codereview.chromium.org/10855037/diff/1/sync/protocol/history_delete_directive_specifics.proto File sync/protocol/history_delete_directive_specifics.proto (right): http://codereview.chromium.org/10855037/diff/1/sync/protocol/history_delete_directive_specifics.proto#newcode19 sync/protocol/history_delete_directive_specifics.proto:19: // The full ...
8 years, 2 months ago (2012-10-10 01:22:54 UTC) #14
albertb
Protobuf looks good. But note that although GlobalIdDirective are technically possible, Web History doesn't support ...
8 years, 2 months ago (2012-10-10 15:15:31 UTC) #15
akalin
On 2012/10/10 15:15:31, albertb wrote: > Protobuf looks good. But note that although GlobalIdDirective are ...
8 years, 2 months ago (2012-10-10 23:04:08 UTC) #16
akalin
Nicolas mentioned offline that we probably want to not encrypt this type. I'll work on ...
8 years, 2 months ago (2012-10-10 23:06:06 UTC) #17
akalin
On 2012/10/10 23:06:06, akalin wrote: > Nicolas mentioned offline that we probably want to not ...
8 years, 2 months ago (2012-10-15 18:36:53 UTC) #18
Nicolas Zea
http://codereview.chromium.org/10855037/diff/24001/sync/protocol/history_delete_directive_specifics.proto File sync/protocol/history_delete_directive_specifics.proto (right): http://codereview.chromium.org/10855037/diff/24001/sync/protocol/history_delete_directive_specifics.proto#newcode48 sync/protocol/history_delete_directive_specifics.proto:48: optional bool delete_everything = 3 [default = false]; does ...
8 years, 2 months ago (2012-10-15 19:03:57 UTC) #19
akalin
On 2012/10/15 19:03:57, nzea wrote: http://codereview.chromium.org/10855037/diff/24001/sync/syncable/nigori_util.cc#newcode278 > sync/syncable/nigori_util.cc:278: nigori->set_encrypt_history_delete_directives( > Does it make sense to ...
8 years, 2 months ago (2012-10-15 19:37:09 UTC) #20
albertb
On 2012/10/15 19:37:09, akalin wrote: > On 2012/10/15 19:03:57, nzea wrote: > http://codereview.chromium.org/10855037/diff/24001/sync/syncable/nigori_util.cc#newcode278 > > ...
8 years, 2 months ago (2012-10-15 19:50:33 UTC) #21
akalin
Comments addressed, PTAL! http://codereview.chromium.org/10855037/diff/24001/sync/protocol/history_delete_directive_specifics.proto File sync/protocol/history_delete_directive_specifics.proto (right): http://codereview.chromium.org/10855037/diff/24001/sync/protocol/history_delete_directive_specifics.proto#newcode48 sync/protocol/history_delete_directive_specifics.proto:48: optional bool delete_everything = 3 [default ...
8 years, 2 months ago (2012-10-15 20:21:21 UTC) #22
Nicolas Zea
lgtm
8 years, 2 months ago (2012-10-15 20:26:14 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/akalin@chromium.org/10855037/28003
8 years, 2 months ago (2012-10-15 20:27:04 UTC) #24
commit-bot: I haz the power
Presubmit check for 10855037-28003 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 2 months ago (2012-10-15 20:27:13 UTC) #25
akalin
Added EncryptableUserTypes() function and use that instead of UserTypes() for encryption stuff. TBRing jam.
8 years, 2 months ago (2012-10-17 05:28:24 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/akalin@chromium.org/10855037/43001
8 years, 2 months ago (2012-10-17 06:38:49 UTC) #27
commit-bot: I haz the power
8 years, 2 months ago (2012-10-17 08:21:06 UTC) #28
Change committed as 162323

Powered by Google App Engine
This is Rietveld 408576698