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

Issue 11071005: Add native file picker impl using SelectFileDialog. (Closed)

Created:
8 years, 2 months ago by Steve McKay
Modified:
8 years, 2 months ago
CC:
chromium-reviews, gbillock+watch_chromium.org, smckay+watch_chromium.org, groby+watch_chromium.org, rouslan+watch_chromium.org, tfarina
Base URL:
http://git.chromium.org/chromium/src.git@filePicker
Visibility:
Public.

Description

Add native file picker impl using SelectFileDialog. Currently there's no good way to send the file data back through to the client. We'll work on that issue in a followup CL. BUG=129769 TBR=jhawkins@chromium.org Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=161517

Patch Set 1 #

Patch Set 2 : Remove ifdefs for VIEWS toolkit. #

Total comments: 10

Patch Set 3 : Merge with master, make intent first arg of each factory method. #

Patch Set 4 : Respond to review comments. #

Patch Set 5 : Add functioning browser tests. #

Total comments: 27

Patch Set 6 : Don't include file picker bits on Android. #

Patch Set 7 : Respond to review comments. #

Patch Set 8 : Put #endif in the right spot. #

Patch Set 9 : Don't use "DeleteService" as a method name since Windows munges it at compile time. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+366 lines, -72 lines) Patch
M chrome/browser/intents/intent_service_host.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/intents/native_services.h View 1 2 3 4 5 6 4 chunks +13 lines, -5 lines 0 comments Download
M chrome/browser/intents/native_services.cc View 1 2 3 4 5 6 7 2 chunks +5 lines, -4 lines 0 comments Download
A chrome/browser/intents/native_services_browsertest.cc View 1 2 3 4 1 chunk +187 lines, -0 lines 0 comments Download
M chrome/browser/intents/native_services_unittest.cc View 1 2 3 4 5 6 7 3 chunks +2 lines, -6 lines 0 comments Download
A chrome/browser/ui/intents/native_file_picker_service.cc View 1 2 3 4 5 6 1 chunk +144 lines, -0 lines 0 comments Download
M chrome/browser/ui/intents/web_intent_picker_controller.cc View 1 2 3 4 5 6 7 8 2 chunks +12 lines, -1 line 0 comments Download
D chrome/browser/ui/views/web_intents_native_services.cc View 1 chunk +0 lines, -55 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 4 5 2 chunks +1 line, -1 line 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
Steve McKay
In case Greg gets bored this weekend :)
8 years, 2 months ago (2012-10-06 21:09:25 UTC) #1
Greg Billock
http://codereview.chromium.org/11071005/diff/10002/chrome/browser/ui/intents/native_file_picker_service.cc File chrome/browser/ui/intents/native_file_picker_service.cc (right): http://codereview.chromium.org/11071005/diff/10002/chrome/browser/ui/intents/native_file_picker_service.cc#newcode55 chrome/browser/ui/intents/native_file_picker_service.cc:55: // pick+*/* intents. "pick + */*" http://codereview.chromium.org/11071005/diff/10002/chrome/browser/ui/intents/native_file_picker_service.cc#newcode63 chrome/browser/ui/intents/native_file_picker_service.cc:63: // ...
8 years, 2 months ago (2012-10-08 20:36:12 UTC) #2
groby-ooo-7-16
http://codereview.chromium.org/11071005/diff/10002/chrome/browser/ui/intents/native_file_picker_service.cc File chrome/browser/ui/intents/native_file_picker_service.cc (right): http://codereview.chromium.org/11071005/diff/10002/chrome/browser/ui/intents/native_file_picker_service.cc#newcode153 chrome/browser/ui/intents/native_file_picker_service.cc:153: return new NativeFilePickerService(web_contents); If we need to inject here ...
8 years, 2 months ago (2012-10-08 20:58:21 UTC) #3
Steve McKay
PTAL. Am looking into writing browser test. http://codereview.chromium.org/11071005/diff/10002/chrome/browser/ui/intents/native_file_picker_service.cc File chrome/browser/ui/intents/native_file_picker_service.cc (right): http://codereview.chromium.org/11071005/diff/10002/chrome/browser/ui/intents/native_file_picker_service.cc#newcode125 chrome/browser/ui/intents/native_file_picker_service.cc:125: ui::SelectFileDialog* dialog ...
8 years, 2 months ago (2012-10-08 22:39:53 UTC) #4
Steve McKay
PTAL.
8 years, 2 months ago (2012-10-09 23:19:01 UTC) #5
Greg Billock
http://codereview.chromium.org/11071005/diff/17001/chrome/browser/intents/native_services.h File chrome/browser/intents/native_services.h (right): http://codereview.chromium.org/11071005/diff/17001/chrome/browser/intents/native_services.h#newcode61 chrome/browser/intents/native_services.h:61: // Returns a NativeService instance suitable to handle Add ...
8 years, 2 months ago (2012-10-10 17:12:51 UTC) #6
Steve McKay
Addressed your comments. PTAL. Still trying to work around android issues. I'll post another patch ...
8 years, 2 months ago (2012-10-10 23:12:57 UTC) #7
Steve McKay
8 years, 2 months ago (2012-10-11 20:57:54 UTC) #8
Steve McKay
Android should be good now. PTAL.
8 years, 2 months ago (2012-10-11 21:11:30 UTC) #9
sky
What parts of this do you need me to review?
8 years, 2 months ago (2012-10-11 21:50:47 UTC) #10
Steve McKay
On 2012/10/11 21:50:47, sky wrote: > What parts of this do you need me to ...
8 years, 2 months ago (2012-10-11 22:09:51 UTC) #11
sky
The file you deleted? LGTM
8 years, 2 months ago (2012-10-11 23:29:08 UTC) #12
Greg Billock
On 2012/10/11 23:29:08, sky wrote: > The file you deleted? LGTM lgtm
8 years, 2 months ago (2012-10-11 23:50:04 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/smckay@chromium.org/11071005/14011
8 years, 2 months ago (2012-10-12 01:42:57 UTC) #14
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build. Your ...
8 years, 2 months ago (2012-10-12 02:39:55 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/smckay@chromium.org/11071005/26002
8 years, 2 months ago (2012-10-12 04:30:18 UTC) #16
commit-bot: I haz the power
8 years, 2 months ago (2012-10-12 06:49:48 UTC) #17
Change committed as 161517

Powered by Google App Engine
This is Rietveld 408576698