Skip to content
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

Sync #226

Merged
merged 97 commits into from
Nov 1, 2018
Merged

Sync #226

merged 97 commits into from
Nov 1, 2018

Conversation

AlexeyBarabash
Copy link
Contributor

Initial work in progress PR for sync
brave/brave-browser#29

@bbondy bbondy changed the title work in progress for sync WIP: Sync Jul 6, 2018
@AlexeyBarabash AlexeyBarabash force-pushed the WIP_sync branch 4 times, most recently from 0e2d0a6 to 053794d Compare July 16, 2018 16:06
@AlexeyBarabash AlexeyBarabash force-pushed the WIP_sync branch 2 times, most recently from 53a3630 to 81d9d6c Compare July 26, 2018 08:36
@AlexeyBarabash AlexeyBarabash force-pushed the WIP_sync branch 2 times, most recently from 847c8b9 to c426e1b Compare August 13, 2018 11:45
.gitignore Outdated Show resolved Hide resolved
AlexeyBarabash and others added 11 commits November 1, 2018 19:02
updated tests according to new bookmarks order processing

more BraveSyncService unittests
syncTimestamp will only be set from native side when node is originally
created from local
…message to console log, according to codereview
--
1. enum name conflicts with windows header
../..\brave/components/brave_sync/jslib_messages.h(115,5): error: expected identifier
  DELETE = 2,
..\..\..\..\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(8881,42): note: expanded from macro 'DELETE'
\#define DELETE                           (0x00010000L)
            ^
--
2. forward declaration doesn't work with unqiue_ptr on Windows
In file included from ../..\brave/components/brave_sync/client/brave_sync_client.h:10:
 ..\..\..\..\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include\memory(1997,21):
  error: invalid application of 'sizeof' to an incomplete type 'brave_sync::jslib::SyncRecord'
                static_assert(0 < sizeof (_Ty),
                                  ^~~~~~~~~~~~
...
DELETE = 2,
A_MIN = CREATE,
A_MAX = DELETE,
A_CREATE = 0,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this seems really hacky, but I think we'll replace this with the chromium sync enums later anyway

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

chromium doesn't use raw DELETE either

  enum SyncChangeType {
    ACTION_INVALID,
    ACTION_ADD,
    ACTION_UPDATE,
    ACTION_DELETE,
  };

@AlexeyBarabash AlexeyBarabash force-pushed the WIP_sync branch 2 times, most recently from 8dffa2a to cbb16ca Compare November 1, 2018 17:32
@AlexeyBarabash AlexeyBarabash merged commit d8e7d68 into master Nov 1, 2018
darkdh pushed a commit that referenced this pull request Nov 1, 2018
@darkdh
Copy link
Member

darkdh commented Nov 1, 2018

master: d8e7d68
0.57.x: b1ca103

@NejcZdovc NejcZdovc deleted the WIP_sync branch November 2, 2018 04:27
@bbondy bbondy added this to the 0.57.x - Release milestone Jan 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants