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

Issue 2967223002: Move fileSystem API FilePicker class to own file (Closed)

Created:
3 years, 5 months ago by michaelpg
Modified:
3 years, 5 months ago
Reviewers:
Devlin
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, tzik, kinuko+fileapi, nhiroki, extensions-reviews_chromium.org, rkc
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Move fileSystem API FilePicker class to own file The chrome.fileSystem API impl has a FilePicker class used to create and show a "Choose a file/directory" dialog. It's not tiny and it manages its own lifetime, so I'm extracting it into a separate file. This will unblock https://codereview.chromium.org/2934143002/ by allowing us to easily override the file picking behavior in extension tests without having to depend on Chrome-specific code. BUG=729713 R=rdevlin.cronin@chromium.org Review-Url: https://codereview.chromium.org/2967223002 Cr-Commit-Position: refs/heads/master@{#484673} Committed: https://chromium.googlesource.com/chromium/src/+/b35720f5e102a25733b3dce0daa1fafda680a5bb

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : no comment #

Total comments: 14

Patch Set 4 : devlin #

Total comments: 4

Patch Set 5 : CHECK web_contents #

Unified diffs Side-by-side diffs Delta from patch set Stats (+228 lines, -133 lines) Patch
M chrome/browser/extensions/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api/file_system/file_entry_picker.h View 1 2 3 4 1 chunk +68 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api/file_system/file_entry_picker.cc View 1 2 3 4 1 chunk +85 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/file_system/file_system_api.h View 3 chunks +5 lines, -3 lines 0 comments Download
M chrome/browser/extensions/api/file_system/file_system_api.cc View 1 2 3 6 chunks +68 lines, -130 lines 0 comments Download

Messages

Total messages: 18 (9 generated)
michaelpg
Devlin: PTAL. This is a new part of https://codereview.chromium.org/2934143002/ that I would rather land first ...
3 years, 5 months ago (2017-07-05 18:33:28 UTC) #3
Devlin
Nice! https://codereview.chromium.org/2967223002/diff/40001/chrome/browser/extensions/api/file_system/file_entry_picker.cc File chrome/browser/extensions/api/file_system/file_entry_picker.cc (right): https://codereview.chromium.org/2967223002/diff/40001/chrome/browser/extensions/api/file_system/file_entry_picker.cc#newcode47 chrome/browser/extensions/api/file_system/file_entry_picker.cc:47: MultiFilesSelected(paths, params); nit: MultiFilesSelected(std::vector<base::FilePath>(path, 1)); https://codereview.chromium.org/2967223002/diff/40001/chrome/browser/extensions/api/file_system/file_entry_picker.h File chrome/browser/extensions/api/file_system/file_entry_picker.h ...
3 years, 5 months ago (2017-07-05 19:08:05 UTC) #5
michaelpg
Thanks, PTAL! https://codereview.chromium.org/2967223002/diff/40001/chrome/browser/extensions/api/file_system/file_entry_picker.cc File chrome/browser/extensions/api/file_system/file_entry_picker.cc (right): https://codereview.chromium.org/2967223002/diff/40001/chrome/browser/extensions/api/file_system/file_entry_picker.cc#newcode47 chrome/browser/extensions/api/file_system/file_entry_picker.cc:47: MultiFilesSelected(paths, params); On 2017/07/05 19:08:04, Devlin wrote: ...
3 years, 5 months ago (2017-07-05 19:52:54 UTC) #6
Devlin
lgtm https://codereview.chromium.org/2967223002/diff/60001/chrome/browser/extensions/api/file_system/file_entry_picker.cc File chrome/browser/extensions/api/file_system/file_entry_picker.cc (right): https://codereview.chromium.org/2967223002/diff/60001/chrome/browser/extensions/api/file_system/file_entry_picker.cc#newcode75 chrome/browser/extensions/api/file_system/file_entry_picker.cc:75: for (std::vector<ui::SelectedFileInfo>::const_iterator it = files.begin(); optional: update this ...
3 years, 5 months ago (2017-07-05 20:32:16 UTC) #7
michaelpg
https://codereview.chromium.org/2967223002/diff/60001/chrome/browser/extensions/api/file_system/file_entry_picker.cc File chrome/browser/extensions/api/file_system/file_entry_picker.cc (right): https://codereview.chromium.org/2967223002/diff/60001/chrome/browser/extensions/api/file_system/file_entry_picker.cc#newcode75 chrome/browser/extensions/api/file_system/file_entry_picker.cc:75: for (std::vector<ui::SelectedFileInfo>::const_iterator it = files.begin(); On 2017/07/05 20:32:15, Devlin ...
3 years, 5 months ago (2017-07-05 21:26:14 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2967223002/80001
3 years, 5 months ago (2017-07-05 21:26:41 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_TIMED_OUT, build has not started yet; ...
3 years, 5 months ago (2017-07-05 23:27:34 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2967223002/80001
3 years, 5 months ago (2017-07-06 18:12:23 UTC) #15
commit-bot: I haz the power
3 years, 5 months ago (2017-07-06 18:16:42 UTC) #18
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/b35720f5e102a25733b3dce0daa1...

Powered by Google App Engine
This is Rietveld 408576698