-
Notifications
You must be signed in to change notification settings - Fork 893
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
USSBookmarks migration #4324
USSBookmarks migration #4324
Conversation
f29b502
to
a71745d
Compare
const size_t old_index = size_t{old_parent->GetIndexOf(node)}; | ||
const size_t new_index = | ||
- ComputeChildNodeIndex(new_parent, update_entity.unique_position, tracker); | ||
+ ComputeChildNodeIndex(new_parent, update_entity.unique_position, tracker) BRAVE_APPLY_REMOTE_UPDATE; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we have to change this line? Can't we check against the value of new_index
? I'm also concerned that we're using a ternary operator with an int. It's better to make a int value check there
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed in 9b84b78
update_entity.specifics.bookmark(), parent_node, | ||
ComputeChildNodeIndex(parent_node, update_entity.unique_position, | ||
- bookmark_tracker_), | ||
+ bookmark_tracker_) BRAVE_PROCESS_CREATE_2, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same as above
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed in 9b84b78
and use AsMutable to set metainfo to prevent triggering BookmarkMetaInfoChanged
@@ -173,7 +173,6 @@ bool BraveMainDelegate::BasicStartupComplete(int* exit_code) { | |||
features::kWebXr.name, | |||
features::kWebXrGamepadModule.name, | |||
unified_consent::kUnifiedConsent.name, | |||
switches::kSyncUSSBookmarks.name, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
header in this file as well? https://github.com/brave/brave-core/pull/4324/files#diff-931f170b705cce8579670910b176bdf2L16
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it is required for switches::kSyncServiceURL
I found a serious regression in 1.5.x (brave/brave-browser#7893) and therefor we should wait with uplift till the issue is resolved. |
Verification passed on
Verified test plan from #4324 (comment) [Pass] Add (1) |
fix brave/brave-browser#6437
Submitter Checklist:
npm run lint
)git rebase master
(if needed).git rebase -i
to squash commits (if needed).Test Plan:
Add (1)
Add with existing bookmarks (2)
3 . A1.com and A2.com should appear on device B instantly
Add with same order (3)
Move
Add (1)
Modify
Add (1)
Reorder (1)
Add (1)
Reorder (2)
Add (1)
Delete
Move
Migration
Add (1)
from old BraveMove
,Modify
,Reorder
orDelete
to testReviewer Checklist:
After-merge Checklist:
changes has landed on.