DescriptionRefactor drive::ChangeListLoader.
- Manage all callbacks passed to LoadIfNeeded in the pending queue, not in method argument.
This eliminates the need of |refreshing_| variable, and simplify the logic
when to wait and when to start loading.
- Unify the place where loaded_ is set and OnInitialFeedLoaded() is called.
- Unify directory changestamp checking logic into one place.
Previously we had it twice.
- Get local_changestamp exactly once in every path.
Previously we had it twice in some cases, and zero in
some case (see the BUG).
BUG=231220
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=194746
Patch Set 1 : Rough cut. #
Total comments: 8
Patch Set 2 : Review fix. #Patch Set 3 : Rebase. #
Messages
Total messages: 6 (0 generated)
|