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.
SyncableService::DeactivateDataType isn't needed.
SyncableService::DeactivateDataType isn't needed and should be removed for 3 reasons: 1) It is called only from Stop() method of old implementations of DataTypeController: - FrontendDataTypeController - NonFrontendDataTypeController UI/NonUI DataType controllers don't call this method from Stop() and work fine without it. 2) Datatype deactivation already done from DataTypeManagerImpl::OnSingleDataTypeWillStop() which is called just before calling the DTC::Stop() method. 3) As a result of ongoing refactoring of USS code there will be two separate deactivation methods - one for directory datatypes, another for USS datatypes. It would be difficult for SyncableService::DeactivateDataType to figure out which of the two specific deactivation codepaths to take. Note: SyncDataTypeManagerImplTest tests still pass with this change. There is a test that verifies deactivation of Bookmarks data type which is based on FrontendDataTypeController. A few tests that bypass DataTypeManager had to be tweaked to not expect SyncableService::DeactivateDataType() to be called when DTC::Stop() is called. BUG=515962 Review URL: https://codereview.chromium.org/1364043002 Cr-Commit-Position: refs/heads/master@{#350634}
- Loading branch information
stanisc
authored and
Commit bot
committed
Sep 24, 2015
1 parent
1c45553
commit 6446739
Showing
11 changed files
with
0 additions
and
29 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
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