DescriptionDrive: Mount/Unmount GoogleDrive on Files App when the file system is mounted/unmounted.
This cl is necessary to refresh the list on file manager on unmounting and mounting the drive file system.
This patch does the following:
- Move the code to raise the mount/unmount events of file manager from file_browser_private_api.cc to file_browser_event_router.cc
- Add handlers' interfaces to notify mount/unmount events in gdata_file_system_interface.h.
- Call the mount/unmount events to FilesApp when handler is called.
- Call the handlers when the file system is mounted/unmounted
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=149913
Patch Set 1 #
Total comments: 14
Patch Set 2 : Fix reviews, Use weak_ptr in AddMountFunction and Change OnDriveAuthencation to private. #Patch Set 3 : Add ALLOW_THIS_IN_INITIALIZER_LIST #Patch Set 4 : Add a comment. #
Total comments: 4
Patch Set 5 : review fix #Patch Set 6 : Move mount&unmount parts back from file_system.cc to system_service.cc #Patch Set 7 : rebase #
Total comments: 6
Patch Set 8 : review fix #
Total comments: 7
Patch Set 9 : review (#14) fixed #Patch Set 10 : Remove unused methods in mock_gdata_file_system.h #Messages
Total messages: 17 (0 generated)
|