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

Issue 563363002: Only set remote id during url node creation. (Closed)

Created:
6 years, 3 months ago by Rune Fevang
Modified:
6 years, 3 months ago
CC:
chromium-reviews, Mark
Base URL:
https://chromium.googlesource.com/chromium/src@master
Project:
chromium
Visibility:
Public.

Description

Only set remote id during url node creation. Folders should only have their id set by the server, and the clients should only set the remote id on clips they created themselves. Additionally, EnhancedBookmarkModel now monitors the remote id field for bookmarks, and initiates a de-duping protocol whenever two (or more) nodes with the same id are detected. BUG=413876 Committed: https://crrev.com/f7a91481ccc179cb47494c3ada5d89b4941e17dd Cr-Commit-Position: refs/heads/master@{#295790}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : Tests #

Total comments: 3

Patch Set 4 : Dedup remote ids + server service changes #

Total comments: 8

Patch Set 5 : EnhancedBookmarkModelObserver #

Total comments: 10

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+675 lines, -241 lines) Patch
M components/enhanced_bookmarks.gypi View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M components/enhanced_bookmarks/bookmark_server_search_service.h View 1 2 3 4 5 3 chunks +13 lines, -9 lines 0 comments Download
M components/enhanced_bookmarks/bookmark_server_search_service.cc View 1 2 3 4 5 3 chunks +12 lines, -11 lines 0 comments Download
M components/enhanced_bookmarks/bookmark_server_service.h View 1 2 3 4 5 4 chunks +9 lines, -44 lines 0 comments Download
M components/enhanced_bookmarks/bookmark_server_service.cc View 1 2 3 4 5 5 chunks +10 lines, -90 lines 0 comments Download
M components/enhanced_bookmarks/enhanced_bookmark_model.h View 1 2 3 4 5 4 chunks +82 lines, -7 lines 0 comments Download
M components/enhanced_bookmarks/enhanced_bookmark_model.cc View 1 2 3 4 5 6 7 11 chunks +189 lines, -35 lines 0 comments Download
A components/enhanced_bookmarks/enhanced_bookmark_model_observer.h View 1 2 3 4 5 1 chunk +43 lines, -0 lines 0 comments Download
M components/enhanced_bookmarks/enhanced_bookmark_model_unittest.cc View 1 2 3 4 5 7 chunks +316 lines, -45 lines 0 comments Download

Messages

Total messages: 23 (6 generated)
Rune Fevang
6 years, 3 months ago (2014-09-12 22:36:01 UTC) #2
noyau1
https://codereview.chromium.org/563363002/diff/30001/components/enhanced_bookmarks/enhanced_bookmark_model.cc File components/enhanced_bookmarks/enhanced_bookmark_model.cc (right): https://codereview.chromium.org/563363002/diff/30001/components/enhanced_bookmarks/enhanced_bookmark_model.cc#newcode118 components/enhanced_bookmarks/enhanced_bookmark_model.cc:118: return std::string(); If existing bookmarks do not have IDs ...
6 years, 3 months ago (2014-09-15 08:08:03 UTC) #4
Mark
https://codereview.chromium.org/563363002/diff/30001/components/enhanced_bookmarks/enhanced_bookmark_model.cc File components/enhanced_bookmarks/enhanced_bookmark_model.cc (right): https://codereview.chromium.org/563363002/diff/30001/components/enhanced_bookmarks/enhanced_bookmark_model.cc#newcode118 components/enhanced_bookmarks/enhanced_bookmark_model.cc:118: return std::string(); On 2014/09/15 08:08:02, noyau1 wrote: > If ...
6 years, 3 months ago (2014-09-15 17:18:57 UTC) #6
noyau (Ping after 24h)
https://codereview.chromium.org/563363002/diff/30001/components/enhanced_bookmarks/enhanced_bookmark_model.cc File components/enhanced_bookmarks/enhanced_bookmark_model.cc (right): https://codereview.chromium.org/563363002/diff/30001/components/enhanced_bookmarks/enhanced_bookmark_model.cc#newcode118 components/enhanced_bookmarks/enhanced_bookmark_model.cc:118: return std::string(); On 2014/09/15 17:18:56, Mark wrote: > On ...
6 years, 3 months ago (2014-09-16 07:33:04 UTC) #7
Rune Fevang
Ah, hadn't seen the new BookmarkServerService class. Converted it to use EnhancedBookmarkModel instead of BookmarkAccessor. ...
6 years, 3 months ago (2014-09-16 23:18:11 UTC) #8
noyau (Ping after 24h)
https://codereview.chromium.org/563363002/diff/50001/components/enhanced_bookmarks/bookmark_server_search_service.cc File components/enhanced_bookmarks/bookmark_server_search_service.cc (right): https://codereview.chromium.org/563363002/diff/50001/components/enhanced_bookmarks/bookmark_server_search_service.cc#newcode103 components/enhanced_bookmarks/bookmark_server_search_service.cc:103: int index) { The superclass used to register for ...
6 years, 3 months ago (2014-09-17 08:24:35 UTC) #9
Rune Fevang
https://codereview.chromium.org/563363002/diff/50001/components/enhanced_bookmarks/bookmark_server_search_service.cc File components/enhanced_bookmarks/bookmark_server_search_service.cc (right): https://codereview.chromium.org/563363002/diff/50001/components/enhanced_bookmarks/bookmark_server_search_service.cc#newcode103 components/enhanced_bookmarks/bookmark_server_search_service.cc:103: int index) { On 2014/09/17 08:24:35, noyau wrote: > ...
6 years, 3 months ago (2014-09-17 22:51:04 UTC) #10
noyau (Ping after 24h)
I'll wait to land the other server service after you land this one, so you ...
6 years, 3 months ago (2014-09-18 08:43:22 UTC) #11
Mark
Thanks Rune! Some comments below. https://codereview.chromium.org/563363002/diff/70001/components/enhanced_bookmarks/enhanced_bookmark_model.cc File components/enhanced_bookmarks/enhanced_bookmark_model.cc (right): https://codereview.chromium.org/563363002/diff/70001/components/enhanced_bookmarks/enhanced_bookmark_model.cc#newcode360 components/enhanced_bookmarks/enhanced_bookmark_model.cc:360: for (NodeToIdMap::iterator it = ...
6 years, 3 months ago (2014-09-18 18:18:28 UTC) #12
Rune Fevang
https://codereview.chromium.org/563363002/diff/50001/components/enhanced_bookmarks/bookmark_server_search_service.cc File components/enhanced_bookmarks/bookmark_server_search_service.cc (right): https://codereview.chromium.org/563363002/diff/50001/components/enhanced_bookmarks/bookmark_server_search_service.cc#newcode103 components/enhanced_bookmarks/bookmark_server_search_service.cc:103: int index) { > If one register for the ...
6 years, 3 months ago (2014-09-19 01:18:07 UTC) #13
noyau (Ping after 24h)
lgtm
6 years, 3 months ago (2014-09-19 07:38:27 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/563363002/130001
6 years, 3 months ago (2014-09-19 18:37:43 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_swarming on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_swarming/builds/15606)
6 years, 3 months ago (2014-09-19 18:52:17 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/563363002/130001
6 years, 3 months ago (2014-09-19 21:27:47 UTC) #20
commit-bot: I haz the power
Committed patchset #8 (id:130001) as 8f2a4f74b9d240dc2116ba94fe98a8698fc935db
6 years, 3 months ago (2014-09-19 22:06:47 UTC) #21
commit-bot: I haz the power
Committed patchset #8 (id:130001) as 26edeed09e906f0a6ebb7e786eba18327e0080a9
6 years, 3 months ago (2014-09-19 22:06:57 UTC) #22
commit-bot: I haz the power
6 years, 3 months ago (2014-09-19 22:07:27 UTC) #23
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/f7a91481ccc179cb47494c3ada5d89b4941e17dd
Cr-Commit-Position: refs/heads/master@{#295790}

Powered by Google App Engine
This is Rietveld 408576698