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

Issue 1082423002: [Sync] Make DirectoryBackingStore's db_ private. (Closed)

Created:
5 years, 8 months ago by maniscalco
Modified:
5 years, 8 months ago
Reviewers:
Nicolas Zea
CC:
chromium-reviews, tim+watch_chromium.org, zea+watch_chromium.org, maxbogue+watch_chromium.org, pvalenzuela+watch_chromium.org, plaree+watch_chromium.org, maniscalco+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Sync] Make DirectoryBackingStore's db_ private. This is a minor refactoring change. See linked bug for related work. In order to make db_ private we needed to: - Add accessors for common operations (IsOpen, etc.) - Make TestDirectoryBackingStore a friend so it can db_.release(). BUG=475557 Committed: https://crrev.com/dd12e9d5be29e54c54d382844d51874bd47ee22a Cr-Commit-Position: refs/heads/master@{#325470}

Patch Set 1 #

Total comments: 3

Patch Set 2 : Move friend declarations to private section. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+61 lines, -25 lines) Patch
M sync/syncable/deferred_on_disk_directory_backing_store.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M sync/syncable/directory.h View 1 2 chunks +10 lines, -10 lines 0 comments Download
M sync/syncable/directory_backing_store.h View 4 chunks +18 lines, -2 lines 0 comments Download
M sync/syncable/directory_backing_store.cc View 2 chunks +20 lines, -2 lines 0 comments Download
M sync/syncable/directory_backing_store_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M sync/syncable/in_memory_directory_backing_store.cc View 2 chunks +5 lines, -4 lines 0 comments Download
M sync/syncable/on_disk_directory_backing_store.cc View 1 chunk +3 lines, -2 lines 0 comments Download

Messages

Total messages: 9 (3 generated)
maniscalco
Nicolas, would you please review this change? It's the latest in a series of Directory ...
5 years, 8 months ago (2015-04-15 18:10:43 UTC) #2
Nicolas Zea
lgtm https://codereview.chromium.org/1082423002/diff/1/sync/syncable/directory_backing_store.h File sync/syncable/directory_backing_store.h (right): https://codereview.chromium.org/1082423002/diff/1/sync/syncable/directory_backing_store.h#newcode47 sync/syncable/directory_backing_store.h:47: friend class TestDirectoryBackingStore; On 2015/04/15 18:10:43, maniscalco wrote: ...
5 years, 8 months ago (2015-04-16 15:56:33 UTC) #3
maniscalco
Thanks for the speedy review! https://codereview.chromium.org/1082423002/diff/1/sync/syncable/directory_backing_store.h File sync/syncable/directory_backing_store.h (right): https://codereview.chromium.org/1082423002/diff/1/sync/syncable/directory_backing_store.h#newcode47 sync/syncable/directory_backing_store.h:47: friend class TestDirectoryBackingStore; On ...
5 years, 8 months ago (2015-04-16 16:03:46 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1082423002/20001
5 years, 8 months ago (2015-04-16 16:04:55 UTC) #7
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 8 months ago (2015-04-16 17:39:00 UTC) #8
commit-bot: I haz the power
5 years, 8 months ago (2015-04-16 17:39:51 UTC) #9
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/dd12e9d5be29e54c54d382844d51874bd47ee22a
Cr-Commit-Position: refs/heads/master@{#325470}

Powered by Google App Engine
This is Rietveld 408576698