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

Issue 585663002: Make Directory's code style a little more consistent. (Closed)

Created:
6 years, 3 months ago by maniscalco
Modified:
6 years, 3 months ago
Reviewers:
Nicolas Zea
CC:
chromium-reviews, tim+watch_chromium.org, haitaol+watch_chromium.org, zea+watch_chromium.org, maniscalco+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Make Directory's code style a little more consistent. This is a cleanup-only/documentation change, no behavior changes. Add comments explaining how Directory locking works. Move protected methods to private (there was no reason for them to be protected). Move private data members below private method declarations. For methods that take a ScopedKernelLock, always pass by const reference before non-const pointer parameters. Give ClearDirtyMetahandles a ScopedKernelLock parameter so it's clear that the caller must be holding a lock. BUG= Committed: https://crrev.com/edb7809b91c8b29404ae9ec9322b4e16edeabaa1 Cr-Commit-Position: refs/heads/master@{#296045}

Patch Set 1 #

Patch Set 2 : Merge with master. #

Total comments: 6

Patch Set 3 : Apply CR feedback. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+87 lines, -79 lines) Patch
M sync/syncable/directory.h View 1 2 4 chunks +57 lines, -48 lines 0 comments Download
M sync/syncable/directory.cc View 1 18 chunks +30 lines, -31 lines 0 comments Download

Messages

Total messages: 9 (2 generated)
maniscalco
Nicolas, would you please review this change?
6 years, 3 months ago (2014-09-18 21:00:32 UTC) #1
maniscalco
Putting zea on the R= line for real this time.
6 years, 3 months ago (2014-09-22 18:31:58 UTC) #3
Nicolas Zea
LGTM with a couple nits https://codereview.chromium.org/585663002/diff/20001/sync/syncable/directory.h File sync/syncable/directory.h (right): https://codereview.chromium.org/585663002/diff/20001/sync/syncable/directory.h#newcode539 sync/syncable/directory.h:539: bool InsertEntry(const ScopedKernelLock& lock, ...
6 years, 3 months ago (2014-09-22 19:46:26 UTC) #4
maniscalco
All applied. Thanks for the review. https://codereview.chromium.org/585663002/diff/20001/sync/syncable/directory.h File sync/syncable/directory.h (right): https://codereview.chromium.org/585663002/diff/20001/sync/syncable/directory.h#newcode539 sync/syncable/directory.h:539: bool InsertEntry(const ScopedKernelLock& ...
6 years, 3 months ago (2014-09-22 19:54:59 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/585663002/40001
6 years, 3 months ago (2014-09-22 19:57:27 UTC) #7
commit-bot: I haz the power
Committed patchset #3 (id:40001) as ff1f0f2a8dbe8d42207b0ec17ce1e06c175cb26a
6 years, 3 months ago (2014-09-22 20:45:16 UTC) #8
commit-bot: I haz the power
6 years, 3 months ago (2014-09-22 20:45:56 UTC) #9
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/edb7809b91c8b29404ae9ec9322b4e16edeabaa1
Cr-Commit-Position: refs/heads/master@{#296045}

Powered by Google App Engine
This is Rietveld 408576698