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

Issue 2592043002: Add title update merge logic to reading list entry (Closed)

Created:
4 years ago by gambard
Modified:
3 years, 11 months ago
Reviewers:
stanisc, Olivier, pavely
CC:
chromium-reviews, stkhapugin, sync-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add title update merge logic to reading list entry This CL adds a update_title_time field to the reading list entries, allowing the title to be correctly merged during sync. BUG=675644 Committed: https://crrev.com/dfabb5669652d28e9e20c83de16ac7c1aaa03cb4 Cr-Commit-Position: refs/heads/master@{#441354}

Patch Set 1 #

Patch Set 2 : Add tests #

Total comments: 2

Patch Set 3 : Change store #

Total comments: 2

Patch Set 4 : Update function comment #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+103 lines, -11 lines) Patch
M components/reading_list/ios/proto/reading_list.proto View 1 chunk +1 line, -0 lines 0 comments Download
M components/reading_list/ios/reading_list_entry.h View 3 chunks +6 lines, -0 lines 0 comments Download
M components/reading_list/ios/reading_list_entry.cc View 1 2 15 chunks +39 lines, -8 lines 0 comments Download
M components/reading_list/ios/reading_list_entry_unittest.cc View 1 2 chunks +13 lines, -0 lines 0 comments Download
M components/reading_list/ios/reading_list_store.h View 1 2 3 1 chunk +7 lines, -1 line 0 comments Download
M components/reading_list/ios/reading_list_store.cc View 1 2 3 chunks +8 lines, -1 line 0 comments Download
M components/reading_list/ios/reading_list_store_unittest.mm View 1 2 2 chunks +28 lines, -1 line 2 comments Download
M components/sync/protocol/reading_list_specifics.proto View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 24 (10 generated)
gambard
PTAL.
4 years ago (2016-12-21 14:45:38 UTC) #2
Olivier
You must update CompareEntriesForSync and ReadingListStoreUnittests. https://codereview.chromium.org/2592043002/diff/20001/components/reading_list/ios/reading_list_entry.cc File components/reading_list/ios/reading_list_entry.cc (right): https://codereview.chromium.org/2592043002/diff/20001/components/reading_list/ios/reading_list_entry.cc#newcode389 components/reading_list/ios/reading_list_entry.cc:389: title_ = std::move(other.title_); ...
4 years ago (2016-12-21 15:14:01 UTC) #3
gambard
Thanks, PTAL. https://codereview.chromium.org/2592043002/diff/20001/components/reading_list/ios/reading_list_entry.cc File components/reading_list/ios/reading_list_entry.cc (right): https://codereview.chromium.org/2592043002/diff/20001/components/reading_list/ios/reading_list_entry.cc#newcode389 components/reading_list/ios/reading_list_entry.cc:389: title_ = std::move(other.title_); On 2016/12/21 15:14:01, Olivier ...
4 years ago (2016-12-21 16:38:00 UTC) #4
Olivier
LGTM after you update the comment. https://codereview.chromium.org/2592043002/diff/40001/components/reading_list/ios/reading_list_store.cc File components/reading_list/ios/reading_list_store.cc (right): https://codereview.chromium.org/2592043002/diff/40001/components/reading_list/ios/reading_list_store.cc#newcode415 components/reading_list/ios/reading_list_store.cc:415: bool ReadingListStore::CompareEntriesForSync( Update ...
4 years ago (2016-12-21 17:03:46 UTC) #5
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/2592043002/60001
4 years ago (2016-12-22 08:54:34 UTC) #8
gambard
Thanks! https://codereview.chromium.org/2592043002/diff/40001/components/reading_list/ios/reading_list_store.cc File components/reading_list/ios/reading_list_store.cc (right): https://codereview.chromium.org/2592043002/diff/40001/components/reading_list/ios/reading_list_store.cc#newcode415 components/reading_list/ios/reading_list_store.cc:415: bool ReadingListStore::CompareEntriesForSync( On 2016/12/21 17:03:46, Olivier Robin wrote: ...
4 years ago (2016-12-22 08:54:36 UTC) #9
gambard
pavely: PTAL for sync. Additional question: can we change existing field name without changing their ...
4 years ago (2016-12-22 08:57:16 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/331486)
4 years ago (2016-12-22 09:00:42 UTC) #13
gambard
+stanisc for sync owner.
4 years ago (2016-12-23 08:38:49 UTC) #15
pavely
lgtm https://codereview.chromium.org/2592043002/diff/60001/components/reading_list/ios/reading_list_store_unittest.mm File components/reading_list/ios/reading_list_store_unittest.mm (right): https://codereview.chromium.org/2592043002/diff/60001/components/reading_list/ios/reading_list_store_unittest.mm#newcode358 components/reading_list/ios/reading_list_store_unittest.mm:358: I think set_update_title_time_us is logically related to corresponding ...
3 years, 11 months ago (2017-01-04 00:12:32 UTC) #16
gambard
Thanks. https://codereview.chromium.org/2592043002/diff/60001/components/reading_list/ios/reading_list_store_unittest.mm File components/reading_list/ios/reading_list_store_unittest.mm (right): https://codereview.chromium.org/2592043002/diff/60001/components/reading_list/ios/reading_list_store_unittest.mm#newcode358 components/reading_list/ios/reading_list_store_unittest.mm:358: On 2017/01/04 00:12:32, pavely wrote: > I think ...
3 years, 11 months ago (2017-01-04 09:57:02 UTC) #17
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/2592043002/60001
3 years, 11 months ago (2017-01-04 09:57:15 UTC) #19
commit-bot: I haz the power
Committed patchset #4 (id:60001)
3 years, 11 months ago (2017-01-04 11:02:41 UTC) #22
commit-bot: I haz the power
3 years, 11 months ago (2017-01-04 11:05:33 UTC) #24
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/dfabb5669652d28e9e20c83de16ac7c1aaa03cb4
Cr-Commit-Position: refs/heads/master@{#441354}

Powered by Google App Engine
This is Rietveld 408576698