Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(226)

Issue 10834115: Drive: Mount/Unmount GoogleDrive on Files App when the file system is mounted/unmounted. (Closed)

Created:
8 years, 4 months ago by yoshiki
Modified:
8 years, 4 months ago
Reviewers:
satorux1
CC:
chromium-reviews, mihaip-chromium-reviews_chromium.org, nkostylev+watch_chromium.org, achuith+watch_chromium.org, Aaron Boodman, rginda+watch_chromium.org, oshima+watch_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Drive: 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+126 lines, -42 lines) Patch
M chrome/browser/chromeos/extensions/file_browser_event_router.h View 1 2 3 4 5 6 7 8 3 chunks +11 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/extensions/file_browser_event_router.cc View 1 2 3 4 5 6 7 8 2 chunks +62 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/extensions/file_browser_private_api.h View 2 3 4 5 6 7 1 chunk +0 lines, -5 lines 0 comments Download
M chrome/browser/chromeos/extensions/file_browser_private_api.cc View 1 2 3 4 5 6 7 3 chunks +5 lines, -35 lines 0 comments Download
M chrome/browser/chromeos/gdata/gdata_file_system.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/gdata/gdata_file_system.cc View 1 2 3 4 5 6 7 8 2 chunks +27 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/gdata/gdata_file_system_interface.h View 1 2 3 4 5 6 7 8 2 chunks +11 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/gdata/gdata_system_service.cc View 1 2 3 4 5 6 7 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/gdata/mock_gdata_file_system.h View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
yoshiki
satorux: could you take a look? This CL is one of 4 patches (maybe) to ...
8 years, 4 months ago (2012-08-01 20:28:36 UTC) #1
satorux1
http://codereview.chromium.org/10834115/diff/1/chrome/browser/chromeos/extensions/file_browser_event_router.cc File chrome/browser/chromeos/extensions/file_browser_event_router.cc (right): http://codereview.chromium.org/10834115/diff/1/chrome/browser/chromeos/extensions/file_browser_event_router.cc#newcode230 chrome/browser/chromeos/extensions/file_browser_event_router.cc:230: const base::Callback<void(bool)>& callback) { add DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); ? http://codereview.chromium.org/10834115/diff/1/chrome/browser/chromeos/extensions/file_browser_event_router.cc#newcode244 chrome/browser/chromeos/extensions/file_browser_event_router.cc:244: ...
8 years, 4 months ago (2012-08-01 20:59:00 UTC) #2
yoshiki
Thanks, PTAL? http://codereview.chromium.org/10834115/diff/1/chrome/browser/chromeos/extensions/file_browser_event_router.cc File chrome/browser/chromeos/extensions/file_browser_event_router.cc (right): http://codereview.chromium.org/10834115/diff/1/chrome/browser/chromeos/extensions/file_browser_event_router.cc#newcode230 chrome/browser/chromeos/extensions/file_browser_event_router.cc:230: const base::Callback<void(bool)>& callback) { On 2012/08/01 20:59:01, ...
8 years, 4 months ago (2012-08-01 22:23:39 UTC) #3
satorux1
http://codereview.chromium.org/10834115/diff/13001/chrome/browser/chromeos/extensions/file_browser_event_router.cc File chrome/browser/chromeos/extensions/file_browser_event_router.cc (right): http://codereview.chromium.org/10834115/diff/13001/chrome/browser/chromeos/extensions/file_browser_event_router.cc#newcode237 chrome/browser/chromeos/extensions/file_browser_event_router.cc:237: base::Bind(&FileBrowserEventRouter::OnDriveAuthentication, OnAuthenticated http://codereview.chromium.org/10834115/diff/13001/chrome/browser/chromeos/extensions/file_browser_private_api.cc File chrome/browser/chromeos/extensions/file_browser_private_api.cc (right): http://codereview.chromium.org/10834115/diff/13001/chrome/browser/chromeos/extensions/file_browser_private_api.cc#newcode1058 chrome/browser/chromeos/extensions/file_browser_private_api.cc:1058: : ...
8 years, 4 months ago (2012-08-02 01:13:05 UTC) #4
satorux1
http://codereview.chromium.org/10834115/diff/1/chrome/browser/chromeos/gdata/gdata_file_system.cc File chrome/browser/chromeos/gdata/gdata_file_system.cc (right): http://codereview.chromium.org/10834115/diff/1/chrome/browser/chromeos/gdata/gdata_file_system.cc#newcode2909 chrome/browser/chromeos/gdata/gdata_file_system.cc:2909: new GDataFileSystemProxy(this)); What classes are interested in NotifyFileSystemMounted() event? ...
8 years, 4 months ago (2012-08-02 01:17:12 UTC) #5
yoshiki
http://codereview.chromium.org/10834115/diff/1/chrome/browser/chromeos/gdata/gdata_file_system.cc File chrome/browser/chromeos/gdata/gdata_file_system.cc (right): http://codereview.chromium.org/10834115/diff/1/chrome/browser/chromeos/gdata/gdata_file_system.cc#newcode2909 chrome/browser/chromeos/gdata/gdata_file_system.cc:2909: new GDataFileSystemProxy(this)); Sorry for my confusing explanation. This method ...
8 years, 4 months ago (2012-08-02 05:53:42 UTC) #6
satorux1
http://codereview.chromium.org/10834115/diff/1/chrome/browser/chromeos/gdata/gdata_file_system.cc File chrome/browser/chromeos/gdata/gdata_file_system.cc (right): http://codereview.chromium.org/10834115/diff/1/chrome/browser/chromeos/gdata/gdata_file_system.cc#newcode2909 chrome/browser/chromeos/gdata/gdata_file_system.cc:2909: new GDataFileSystemProxy(this)); On 2012/08/02 05:53:42, yoshiki wrote: > Sorry ...
8 years, 4 months ago (2012-08-02 06:19:44 UTC) #7
yoshiki
On 2012/08/02 06:19:44, satorux1 wrote: > My question was, why NotifyFileSystemMounted() has to be part ...
8 years, 4 months ago (2012-08-02 06:37:01 UTC) #8
satorux1
forgot to send this out... http://codereview.chromium.org/10834115/diff/1/chrome/browser/chromeos/gdata/gdata_file_system.cc File chrome/browser/chromeos/gdata/gdata_file_system.cc (right): http://codereview.chromium.org/10834115/diff/1/chrome/browser/chromeos/gdata/gdata_file_system.cc#newcode2909 chrome/browser/chromeos/gdata/gdata_file_system.cc:2909: new GDataFileSystemProxy(this)); On 2012/08/02 ...
8 years, 4 months ago (2012-08-02 06:38:31 UTC) #9
satorux1
On 2012/08/02 06:37:01, yoshiki wrote: > On 2012/08/02 06:19:44, satorux1 wrote: > > My question ...
8 years, 4 months ago (2012-08-02 06:40:05 UTC) #10
yoshiki
satorux: As discussed offline, moved mount- & unmount-related codes from file_system.cc to system_service.cc. PTAL On ...
8 years, 4 months ago (2012-08-03 07:15:03 UTC) #11
satorux1
I think the patch description is not up-to-date. Please fix http://codereview.chromium.org/10834115/diff/10017/chrome/browser/chromeos/extensions/file_browser_private_api.h File chrome/browser/chromeos/extensions/file_browser_private_api.h (right): http://codereview.chromium.org/10834115/diff/10017/chrome/browser/chromeos/extensions/file_browser_private_api.h#newcode289 ...
8 years, 4 months ago (2012-08-03 17:28:55 UTC) #12
yoshiki
PTAL https://chromiumcodereview.appspot.com/10834115/diff/10017/chrome/browser/chromeos/extensions/file_browser_private_api.h File chrome/browser/chromeos/extensions/file_browser_private_api.h (right): https://chromiumcodereview.appspot.com/10834115/diff/10017/chrome/browser/chromeos/extensions/file_browser_private_api.h#newcode289 chrome/browser/chromeos/extensions/file_browser_private_api.h:289: base::WeakPtrFactory<AddMountFunction> weak_ptr_factory_; On 2012/08/03 17:28:56, satorux1 wrote: > ...
8 years, 4 months ago (2012-08-03 18:15:08 UTC) #13
satorux1
https://chromiumcodereview.appspot.com/10834115/diff/3023/chrome/browser/chromeos/gdata/gdata_file_system.cc File chrome/browser/chromeos/gdata/gdata_file_system.cc (right): https://chromiumcodereview.appspot.com/10834115/diff/3023/chrome/browser/chromeos/gdata/gdata_file_system.cc#newcode3404 chrome/browser/chromeos/gdata/gdata_file_system.cc:3404: DVLOG(1) << "File System is getting unmounted"; is to ...
8 years, 4 months ago (2012-08-03 18:21:14 UTC) #14
yoshiki
PTAL
8 years, 4 months ago (2012-08-03 20:06:36 UTC) #15
yoshiki
https://chromiumcodereview.appspot.com/10834115/diff/3023/chrome/browser/chromeos/gdata/gdata_file_system.cc File chrome/browser/chromeos/gdata/gdata_file_system.cc (right): https://chromiumcodereview.appspot.com/10834115/diff/3023/chrome/browser/chromeos/gdata/gdata_file_system.cc#newcode3404 chrome/browser/chromeos/gdata/gdata_file_system.cc:3404: DVLOG(1) << "File System is getting unmounted"; On 2012/08/03 ...
8 years, 4 months ago (2012-08-03 20:10:31 UTC) #16
satorux1
8 years, 4 months ago (2012-08-03 20:11:18 UTC) #17
LGTM

http://codereview.chromium.org/10834115/diff/3023/chrome/browser/chromeos/gda...
File chrome/browser/chromeos/gdata/mock_gdata_file_system.h (right):

http://codereview.chromium.org/10834115/diff/3023/chrome/browser/chromeos/gda...
chrome/browser/chromeos/gdata/mock_gdata_file_system.h:86:
MOCK_METHOD0(RemoveDriveMountPoint, void());
thank you for removing them. :)

Powered by Google App Engine
This is Rietveld 408576698