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

Issue 22165002: Change the meaning of SelectFileDialog.support_drive: it means Drive-aware callers. (Closed)

Created:
7 years, 4 months ago by kinaba
Modified:
7 years, 4 months ago
Reviewers:
satorux1, sky
CC:
chromium-reviews, dbeam+watch-options_chromium.org, extensions-reviews_chromium.org, nkostylev+watch_chromium.org, tfarina, rginda+watch_chromium.org, arv+watch_chromium.org, oshima+watch_chromium.org, chromium-apps-reviews_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

Change the meaning of SelectFileDialog.support_drive: it means Drive-aware callers. Previously, what the |support_drive| flag means is just to show Google Drive tab in the file dialog; it doesn't change other behaviors. Now, we are going to enable the "Google Drive" tab on Chrome OS for all call sites of the dialog, by adding a feature to Drive client to provide local snapshot so that callers need not care about Drive. On the other hand, the "create snapshot" trick is unnecessary for clients like Packaged app or extensions that implement fileBrowserHandler, which access files through HTML5 FileSystem API. So, for those clients I want to leave the |support_drive| flag to indicate that no special handling is needed. Here's the summary: Before: - support_drive, folder-dialog : show Drive tab. No special handling. - support_drive, open-dialog : show Drive tab. Create local snapshot. - support_drive, save-dialog : show Drive tab. No special handling. - !support_drive, folder-dialog : hide Drive tab. - !support_drive, open-dialog : hide Drive tab. (this mode is not used) - !support_drive, save-dialog : hide Drive tab. After: - support_drive, folder-dialog : show Drive tab. No special handling. - support_drive, open-dialog : show Drive tab. No special handling. - support_drive, save-dialog : show Drive tab. No special handling. - !support_drive, folder-dialog : *HIDE* Drive tab. (this is not supported yet) - !support_drive, open-dialog : Show Drive tab. Create local snapshot. - !support_drive, save-dialog : *HIDE* Drive tab. (VERY SOON switch to => "Show Drive tab. Create local snapshot.") BUG=140425 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=215922

Patch Set 1 : #

Total comments: 12

Patch Set 2 : Just rebasing #

Patch Set 3 : Review fix (#2). #

Messages

Total messages: 8 (0 generated)
kinaba
7 years, 4 months ago (2013-08-06 01:28:00 UTC) #1
satorux1
Finally this is coming! https://codereview.chromium.org/22165002/diff/11001/chrome/browser/chromeos/extensions/file_manager/private_api_util.cc File chrome/browser/chromeos/extensions/file_manager/private_api_util.cc (right): https://codereview.chromium.org/22165002/diff/11001/chrome/browser/chromeos/extensions/file_manager/private_api_util.cc#newcode56 chrome/browser/chromeos/extensions/file_manager/private_api_util.cc:56: // When opening a drive ...
7 years, 4 months ago (2013-08-06 02:07:17 UTC) #2
kinaba
https://codereview.chromium.org/22165002/diff/11001/chrome/browser/chromeos/extensions/file_manager/private_api_util.cc File chrome/browser/chromeos/extensions/file_manager/private_api_util.cc (right): https://codereview.chromium.org/22165002/diff/11001/chrome/browser/chromeos/extensions/file_manager/private_api_util.cc#newcode56 chrome/browser/chromeos/extensions/file_manager/private_api_util.cc:56: // When opening a drive file, we should get ...
7 years, 4 months ago (2013-08-06 06:20:56 UTC) #3
satorux1
LGTM
7 years, 4 months ago (2013-08-06 07:39:09 UTC) #4
kinaba
+sky as the OWNER of chrome/ and ui/. Could you take a quick look? This ...
7 years, 4 months ago (2013-08-06 08:41:39 UTC) #5
sky
LGTM
7 years, 4 months ago (2013-08-06 14:33:00 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kinaba@chromium.org/22165002/19002
7 years, 4 months ago (2013-08-06 15:10:54 UTC) #7
commit-bot: I haz the power
7 years, 4 months ago (2013-08-06 17:27:02 UTC) #8
Message was sent while issue was closed.
Change committed as 215922

Powered by Google App Engine
This is Rietveld 408576698