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

Issue 2442453002: [Sync] Adds a new switch for enabling the new local server backend. (Closed)

Created:
4 years, 2 months ago by pastarmovj
Modified:
4 years, 1 month ago
Reviewers:
pavely
CC:
chromium-reviews, sync-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Adds a new switch for enabling the new local server backend. Actually two flags which play in tandem: --enable-local-sync-backend and --local-sync-backend-dir The second is respected only if the first one is specified. Eventually those will be controlled by policy but the flags will allow easier testing and potentially unlock the feature for advanced users. For now sign-in is needed to kick the sync logic on but the data is only stored locally when this flag is specified. BUG=651411 TEST=unit_tests/manual. Committed: https://crrev.com/d69772aa33ea1ad4e53b5236bb66fc92c1e7cc0a Cr-Commit-Position: refs/heads/master@{#429280}

Patch Set 1 #

Patch Set 2 : Fixed wrong type. #

Patch Set 3 : Add a constant for the proto filename. Rebase on ToT. #

Patch Set 4 : Ifdefs for Windows only. #

Total comments: 6

Patch Set 5 : Address comments. #

Patch Set 6 : Fix InitArgs contructor. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+106 lines, -13 lines) Patch
M components/browser_sync/browser_sync_switches.h View 1 chunk +2 lines, -0 lines 0 comments Download
M components/browser_sync/browser_sync_switches.cc View 1 chunk +8 lines, -0 lines 0 comments Download
M components/browser_sync/profile_sync_service.cc View 1 2 3 4 4 chunks +37 lines, -3 lines 0 comments Download
M components/browser_sync/profile_sync_service_unittest.cc View 1 2 3 4 3 chunks +5 lines, -0 lines 0 comments Download
M components/sync/driver/glue/sync_backend_host.h View 1 chunk +2 lines, -0 lines 0 comments Download
M components/sync/driver/glue/sync_backend_host_core.h View 1 2 chunks +4 lines, -0 lines 0 comments Download
M components/sync/driver/glue/sync_backend_host_core.cc View 3 chunks +6 lines, -0 lines 0 comments Download
M components/sync/driver/glue/sync_backend_host_impl.h View 1 chunk +2 lines, -0 lines 0 comments Download
M components/sync/driver/glue/sync_backend_host_impl.cc View 2 chunks +3 lines, -0 lines 0 comments Download
M components/sync/driver/glue/sync_backend_host_impl_unittest.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M components/sync/driver/glue/sync_backend_host_mock.h View 1 chunk +2 lines, -0 lines 0 comments Download
M components/sync/driver/glue/sync_backend_host_mock.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M components/sync/engine/sync_manager.h View 1 chunk +5 lines, -0 lines 0 comments Download
M components/sync/engine/sync_manager.cc View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M components/sync/engine_impl/loopback_server/loopback_server.cc View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M components/sync/engine_impl/sync_manager_impl.h View 2 chunks +1 line, -2 lines 0 comments Download
M components/sync/engine_impl/sync_manager_impl.cc View 1 2 3 4 2 chunks +19 lines, -5 lines 0 comments Download

Messages

Total messages: 21 (9 generated)
pastarmovj
Hi Pavel, here is the next (much smaller) part of the puzzle. Please let me ...
4 years, 2 months ago (2016-10-21 13:10:25 UTC) #2
pastarmovj
On 2016/10/21 13:10:25, pastarmovj wrote: > Hi Pavel, > > here is the next (much ...
4 years, 1 month ago (2016-10-27 09:43:00 UTC) #4
pavely
lgtm https://codereview.chromium.org/2442453002/diff/60001/components/browser_sync/profile_sync_service.cc File components/browser_sync/profile_sync_service.cc (right): https://codereview.chromium.org/2442453002/diff/60001/components/browser_sync/profile_sync_service.cc#newcode528 components/browser_sync/profile_sync_service.cc:528: local_sync_backend_folder.Append(base_directory_.BaseName()); I guess base_directory_.BaseName() returns "Default" or "Profile ...
4 years, 1 month ago (2016-10-27 23:53:39 UTC) #5
pastarmovj
https://codereview.chromium.org/2442453002/diff/60001/components/browser_sync/profile_sync_service.cc File components/browser_sync/profile_sync_service.cc (right): https://codereview.chromium.org/2442453002/diff/60001/components/browser_sync/profile_sync_service.cc#newcode528 components/browser_sync/profile_sync_service.cc:528: local_sync_backend_folder.Append(base_directory_.BaseName()); On 2016/10/27 23:53:39, pavely wrote: > I guess ...
4 years, 1 month ago (2016-11-02 13:39:25 UTC) #6
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/2442453002/80001
4 years, 1 month ago (2016-11-02 13:40:00 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/329263)
4 years, 1 month ago (2016-11-02 14:12:25 UTC) #11
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/2442453002/100001
4 years, 1 month ago (2016-11-02 14:21:43 UTC) #14
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 1 month ago (2016-11-02 14:58:13 UTC) #16
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/d69772aa33ea1ad4e53b5236bb66fc92c1e7cc0a Cr-Commit-Position: refs/heads/master@{#429280}
4 years, 1 month ago (2016-11-02 15:01:10 UTC) #18
please use gerrit instead
A revert of this CL (patchset #6 id:100001) has been created in https://codereview.chromium.org/2470153002/ by rouslan@chromium.org. ...
4 years, 1 month ago (2016-11-02 15:45:00 UTC) #19
pastarmovj
On 2016/11/02 15:45:00, rouslan wrote: > A revert of this CL (patchset #6 id:100001) has ...
4 years, 1 month ago (2016-11-02 15:54:11 UTC) #20
Avi (use Gerrit)
4 years, 1 month ago (2016-11-02 17:02:15 UTC) #21
Message was sent while issue was closed.
On 2016/11/02 15:54:11, pastarmovj wrote:
> On 2016/11/02 15:45:00, rouslan wrote:
> > A revert of this CL (patchset #6 id:100001) has been created in
> > <crxref style="background-image:
>
url("chrome-extension://ppnlfijacbhfpjgkafbeiaklmgoljooo/res/type/codereview.png");">https://codereview.chromium.org/2470153002/</crxref>
> by mailto:rouslan@chromium.org.
> > 
> > The reason for reverting is: Speculative revert to fix "sizes" on "Linux
x64"
> > bot.
> > 
> > Failed build:
> > https://build.chromium.org/p/chromium/builders/Linux%20x64/builds/27974
> > 
> > Error message:
> > FAILED linux-release-64/sizes/chrome-si/initializers: actual 8, expected 7,
> > better lower
> > 
> > Most likely due to using:
> > 
> >     const base::FilePath::StringType kLoopbackServerBackendFilename
> > 
> > instead of
> > 
> >     static const base::FilePath::CharType kLoopbackServerBackendFilename[]
> > 
> > as on line 153 in profile_sync_service.cc..
> 
> Indeed. Fixed CL is underway but it would have been just as simple to commit
the
> fix instead of the revert...

It's nothing personal, but the rule is to revert first (see
https://www.chromium.org/developers/tree-sheriffs ).

Powered by Google App Engine
This is Rietveld 408576698