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

Issue 2710623003: [sync] Clean up path generation for the local sync database. (Closed)

Created:
3 years, 10 months ago by pastarmovj
Modified:
3 years, 9 months ago
Reviewers:
Nicolas Zea
CC:
chromium-reviews, sync-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[sync] Clean up path generation for the local sync database. A lot of the logic was built into Sync although it was inherent to Chrome to pick and build the location for its profiles. With this CL the logic is offloaded to the PathService and injected into Sync. Also this CL cleans up a duplication of the logic for picking the path between the SyncPrefs and SyncServiceBase classes. BUG=694464 TEST=Manual verify the right location is used. Review-Url: https://codereview.chromium.org/2710623003 Cr-Commit-Position: refs/heads/master@{#453932} Committed: https://chromium.googlesource.com/chromium/src/+/8b8b5e3692189301795e9fb21fec7f371f19b7f0

Patch Set 1 #

Total comments: 8

Patch Set 2 : Shuffle code around. #

Total comments: 4

Patch Set 3 : Address comments. #

Patch Set 4 : Fix non-windows bots. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+79 lines, -93 lines) Patch
M chrome/browser/sync/chrome_sync_client.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/sync/chrome_sync_client.cc View 1 2 3 5 chunks +40 lines, -0 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_factory.cc View 1 4 chunks +19 lines, -26 lines 0 comments Download
M components/browser_sync/profile_sync_service.h View 1 2 chunks +0 lines, -4 lines 0 comments Download
M components/browser_sync/profile_sync_service.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M components/browser_sync/profile_sync_service_unittest.cc View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M components/sync/base/sync_prefs.cc View 1 2 1 chunk +1 line, -17 lines 0 comments Download
M components/sync/driver/fake_sync_client.h View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M components/sync/driver/fake_sync_client.cc View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M components/sync/driver/sync_client.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M components/sync/driver/sync_service_base.h View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M components/sync/driver/sync_service_base.cc View 1 3 chunks +2 lines, -41 lines 0 comments Download
M ios/chrome/browser/sync/ios_chrome_sync_client.h View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M ios/chrome/browser/sync/ios_chrome_sync_client.mm View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (12 generated)
pastarmovj
Hi Nicolas, as mentioned in the code review request for https://codereview.chromium.org/2709693002/ this is the proper ...
3 years, 10 months ago (2017-02-21 15:07:01 UTC) #4
Nicolas Zea
https://codereview.chromium.org/2710623003/diff/1/chrome/browser/sync/profile_sync_service_factory.cc File chrome/browser/sync/profile_sync_service_factory.cc (right): https://codereview.chromium.org/2710623003/diff/1/chrome/browser/sync/profile_sync_service_factory.cc#newcode178 chrome/browser/sync/profile_sync_service_factory.cc:178: SYSLOG(WARNING) << "Local sync can not get the roaming ...
3 years, 10 months ago (2017-02-21 23:58:40 UTC) #7
pastarmovj
Thanks for the great suggestions! I think it became way more cleaner now. :) https://codereview.chromium.org/2710623003/diff/1/chrome/browser/sync/profile_sync_service_factory.cc ...
3 years, 10 months ago (2017-02-22 14:23:14 UTC) #8
pastarmovj
On 2017/02/22 14:23:14, pastarmovj wrote: > Thanks for the great suggestions! I think it became ...
3 years, 10 months ago (2017-02-22 14:37:00 UTC) #9
pastarmovj
On 2017/02/22 14:37:00, pastarmovj wrote: > On 2017/02/22 14:23:14, pastarmovj wrote: > > Thanks for ...
3 years, 9 months ago (2017-02-27 09:55:49 UTC) #10
Nicolas Zea
LGTM, thanks for cleaning that up! https://codereview.chromium.org/2710623003/diff/20001/chrome/browser/sync/chrome_sync_client.cc File chrome/browser/sync/chrome_sync_client.cc (right): https://codereview.chromium.org/2710623003/diff/20001/chrome/browser/sync/chrome_sync_client.cc#newcode265 chrome/browser/sync/chrome_sync_client.cc:265: // one should ...
3 years, 9 months ago (2017-02-27 19:21:26 UTC) #11
pastarmovj
https://codereview.chromium.org/2710623003/diff/20001/chrome/browser/sync/chrome_sync_client.cc File chrome/browser/sync/chrome_sync_client.cc (right): https://codereview.chromium.org/2710623003/diff/20001/chrome/browser/sync/chrome_sync_client.cc#newcode265 chrome/browser/sync/chrome_sync_client.cc:265: // one should be considered roamed. On 2017/02/27 19:21:26, ...
3 years, 9 months ago (2017-02-28 17:22:34 UTC) #12
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/2710623003/40001
3 years, 9 months ago (2017-02-28 17:23:18 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: ios-device-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device-xcode-clang/builds/47122) ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, ...
3 years, 9 months ago (2017-02-28 17:33: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/2710623003/60001
3 years, 9 months ago (2017-03-01 13:50:47 UTC) #20
commit-bot: I haz the power
3 years, 9 months ago (2017-03-01 14:46:13 UTC) #23
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/8b8b5e3692189301795e9fb21fec...

Powered by Google App Engine
This is Rietveld 408576698