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

Issue 948113005: Sync: Small refactoring of Directory::CheckTreeInvariants (Closed)

Created:
5 years, 10 months ago by stanisc
Modified:
5 years, 10 months ago
Reviewers:
maniscalco
CC:
chromium-reviews, tim+watch_chromium.org, pvalenzuela+watch_chromium.org, maxbogue+watch_chromium.org, zea+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: Small refactoring of Directory::CheckTreeInvariants. The purpose of this change is to minimize chances of hitting crbug/456029. 1) Call ModelTypeToRootTag only when the root folder could potentially be created on the client i.e. model type is defined in client EntitySpecifics and it is one of supported model types. 2) Rename is_type_root_folder to is_client_creatable_type_root_folder to make it clear that the checks are specific to client created type root folders. 3) Narrow the scope of where is_client_creatable_type_root_folder has to be calculated. BUG=456029 Committed: https://crrev.com/3b78f0eafeca764920557094ab88eaadcfc3fca5 Cr-Commit-Position: refs/heads/master@{#317742}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -9 lines) Patch
M sync/engine/directory_update_handler.cc View 1 chunk +1 line, -1 line 0 comments Download
M sync/engine/syncer_util.cc View 1 chunk +1 line, -1 line 0 comments Download
M sync/internal_api/public/base/model_type.h View 1 chunk +4 lines, -0 lines 0 comments Download
M sync/syncable/directory.cc View 2 chunks +10 lines, -6 lines 0 comments Download
M sync/syncable/model_neutral_mutable_entry.cc View 1 chunk +1 line, -1 line 0 comments Download
M sync/syncable/model_type.cc View 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (2 generated)
stanisc
PTAL!
5 years, 10 months ago (2015-02-23 23:31:30 UTC) #2
maniscalco
Very nice. LGTM.
5 years, 10 months ago (2015-02-24 01:11:18 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/948113005/1
5 years, 10 months ago (2015-02-24 01:22:50 UTC) #5
commit-bot: I haz the power
Committed patchset #1 (id:1)
5 years, 10 months ago (2015-02-24 02:14:27 UTC) #6
commit-bot: I haz the power
5 years, 10 months ago (2015-02-24 02:15:04 UTC) #7
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/3b78f0eafeca764920557094ab88eaadcfc3fca5
Cr-Commit-Position: refs/heads/master@{#317742}

Powered by Google App Engine
This is Rietveld 408576698