forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 Review URL: https://codereview.chromium.org/948113005 Cr-Commit-Position: refs/heads/master@{#317742}
- Loading branch information
stanisc
authored and
Commit bot
committed
Feb 24, 2015
1 parent
b79e365
commit 3b78f0e
Showing
6 changed files
with
22 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters