DescriptionDrive: add a method to clear all local cache.
Mainly, this cl add the two methods to clear cache.
1) GDataCache::ClearAllOnUIThread():
- remove all the files in the cache directory.
- re-create the |metadata_| instance.
2) GDataSystemService::ClearCacheAndReset():
- unmount Drive
- cancel all the running tasks.
- call GDataCache::ClearAllOnUIThread()
- re-mount Drive
BUG=135197
TEST=out/Debug/unit_tests:GData* and out/Debug/browser_tests:GData* passes.
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=149914
Patch Set 1 #
Total comments: 17
Patch Set 2 : review fix #
Total comments: 14
Patch Set 3 : Fix reviews and remove back the DCHECK in AddBackDrivemountPoint(). #
Total comments: 6
Patch Set 4 : review fix #Patch Set 5 : rebase #Patch Set 6 : Fix wrong condition. #
Total comments: 4
Patch Set 7 : review fix (comment #12) #
Messages
Total messages: 13 (0 generated)
|