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

Issue 10667026: Start consolidating cross-port file selection code into ui/base/dialogs. (Closed)

Created:
8 years, 6 months ago by Elliot Glaysher
Modified:
8 years, 5 months ago
Reviewers:
sky
CC:
chromium-reviews, Aaron Boodman, kinuko+watch, mihaip-chromium-reviews_chromium.org, rdsmith+dwatch_chromium.org
Visibility:
Public.

Description

Start consolidating cross-port file selection code into ui/base/dialogs. Part 2: Split the chrome specific policy code into a chrome class that implements a general interface. In the next patch, we'll actually move SelectFileDialog to ui/base/dialogs/. BUG=134529 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=144938

Patch Set 1 #

Total comments: 7

Patch Set 2 : Rebase w/ ToT and address sky's comments #

Patch Set 3 : Further cleanup #

Patch Set 4 : Also more gyp #

Patch Set 5 : mac/win compile #

Patch Set 6 : Fix user data dir view #

Patch Set 7 : more compile #

Patch Set 8 : fix chromeos compile #

Patch Set 9 : fix chromeos compile #

Patch Set 10 : fix chromeos compile #

Patch Set 11 : fix chromeos #

Patch Set 12 : fix chromeos #

Total comments: 1

Patch Set 13 : sky nit #

Patch Set 14 : rebase to tot #

Patch Set 15 : Try different type #

Patch Set 16 : Attempt to fix win #

Unified diffs Side-by-side diffs Delta from patch set Stats (+334 lines, -251 lines) Patch
M chrome/browser/bookmarks/bookmark_extension_api.cc View 1 2 3 chunks +7 lines, -5 lines 0 comments Download
M chrome/browser/chromeos/extensions/file_browser_handler_api.cc View 1 2 3 4 5 6 7 8 2 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/debugger/devtools_file_helper.cc View 1 4 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/download/download_file_picker.cc View 1 3 chunks +13 lines, -7 lines 0 comments Download
M chrome/browser/download/save_package_file_picker.cc View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/download/save_package_file_picker_chromeos.cc View 1 2 3 4 5 6 7 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/file_system/file_system_api.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/file_select_helper.cc View 1 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/browser.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/certificate_dialogs.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/certificate_dialogs.cc View 1 5 chunks +4 lines, -4 lines 0 comments Download
A chrome/browser/ui/chrome_select_file_policy.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +34 lines, -0 lines 0 comments Download
A chrome/browser/ui/chrome_select_file_policy.cc View 1 1 chunk +54 lines, -0 lines 0 comments Download
A + chrome/browser/ui/chrome_select_file_policy_unittest.cc View 1 2 5 chunks +10 lines, -4 lines 0 comments Download
M chrome/browser/ui/cocoa/select_file_dialog_mac.mm View 1 2 3 4 2 chunks +8 lines, -5 lines 0 comments Download
M chrome/browser/ui/gtk/select_file_dialog_impl.h View 1 2 chunks +6 lines, -2 lines 0 comments Download
M chrome/browser/ui/gtk/select_file_dialog_impl.cc View 1 2 chunks +8 lines, -5 lines 0 comments Download
M chrome/browser/ui/gtk/select_file_dialog_impl_gtk.cc View 1 2 chunks +7 lines, -5 lines 0 comments Download
M chrome/browser/ui/gtk/select_file_dialog_impl_kde.cc View 1 3 chunks +9 lines, -3 lines 0 comments Download
M chrome/browser/ui/select_file_dialog.h View 1 5 chunks +17 lines, -7 lines 0 comments Download
M chrome/browser/ui/select_file_dialog.cc View 1 3 chunks +9 lines, -30 lines 0 comments Download
D chrome/browser/ui/select_file_dialog_unittest.cc View 1 chunk +0 lines, -100 lines 0 comments Download
M chrome/browser/ui/views/select_file_dialog_extension.h View 1 2 3 4 5 6 7 8 3 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/select_file_dialog_extension.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +11 lines, -6 lines 0 comments Download
M chrome/browser/ui/views/select_file_dialog_extension_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +3 lines, -6 lines 0 comments Download
M chrome/browser/ui/views/select_file_dialog_extension_unittest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/select_file_dialog_win.cc View 1 2 3 4 3 chunks +8 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/user_data_dir_dialog_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/extensions/extension_settings_handler.cc View 1 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/extensions/pack_extension_handler.cc View 1 2 chunks +6 lines, -3 lines 0 comments Download
M chrome/browser/ui/webui/options2/browser_options_handler2.cc View 1 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/options2/certificate_manager_handler2.cc View 1 5 chunks +11 lines, -8 lines 0 comments Download
M chrome/browser/ui/webui/options2/chromeos/change_picture_options_handler2.cc View 1 2 3 4 5 6 7 8 9 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/webui/options2/chromeos/set_wallpaper_options_handler2.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/webui/print_preview/print_preview_handler.cc View 1 3 chunks +3 lines, -4 lines 0 comments Download
M chrome/browser/ui/webui/tracing_ui.cc View 1 3 chunks +7 lines, -4 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +1 line, -1 line 0 comments Download
M ui/base/dialogs/base_shell_dialog.h View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
A ui/base/dialogs/select_file_policy.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +28 lines, -0 lines 0 comments Download
A ui/base/dialogs/select_file_policy.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +11 lines, -0 lines 0 comments Download
M ui/ui.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
sky
https://chromiumcodereview.appspot.com/10667026/diff/1/chrome/browser/chrome_select_file_policy.cc File chrome/browser/chrome_select_file_policy.cc (right): https://chromiumcodereview.appspot.com/10667026/diff/1/chrome/browser/chrome_select_file_policy.cc#newcode47 chrome/browser/chrome_select_file_policy.cc:47: TabContents* tab_contents = TabContents::FromWebContents(source_contents); Can't this return NULL? https://chromiumcodereview.appspot.com/10667026/diff/1/chrome/browser/chrome_select_file_policy.h ...
8 years, 6 months ago (2012-06-26 00:07:18 UTC) #1
Elliot Glaysher
First version for review. Based on sky's comments, I changed every callsite to SelectFileDialog::Create() so ...
8 years, 5 months ago (2012-06-28 20:09:52 UTC) #2
sky
LGTM https://chromiumcodereview.appspot.com/10667026/diff/37003/chrome/browser/ui/chrome_select_file_policy.h File chrome/browser/ui/chrome_select_file_policy.h (right): https://chromiumcodereview.appspot.com/10667026/diff/37003/chrome/browser/ui/chrome_select_file_policy.h#newcode20 chrome/browser/ui/chrome_select_file_policy.h:20: explicit ChromeSelectFilePolicy(content::WebContents* source_contents); Document ownership.
8 years, 5 months ago (2012-06-28 21:01:40 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/erg@chromium.org/10667026/36004
8 years, 5 months ago (2012-06-28 21:22:40 UTC) #4
commit-bot: I haz the power
Presubmit check for 10667026-36004 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 5 months ago (2012-06-28 21:22:54 UTC) #5
Elliot Glaysher
On 2012/06/28 21:22:54, I haz the power (commit-bot) wrote: > Presubmit check for 10667026-36004 failed ...
8 years, 5 months ago (2012-06-28 23:05:26 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/erg@chromium.org/10667026/33002
8 years, 5 months ago (2012-06-28 23:05:45 UTC) #7
commit-bot: I haz the power
Presubmit check for 10667026-33002 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 5 months ago (2012-06-28 23:05:59 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/erg@chromium.org/10667026/23012
8 years, 5 months ago (2012-06-28 23:19:37 UTC) #9
commit-bot: I haz the power
Try job failure for 10667026-23012 (retry) (retry) on linux_rel for step "interactive_ui_tests". It's a second ...
8 years, 5 months ago (2012-06-29 00:18:16 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/erg@chromium.org/10667026/48002
8 years, 5 months ago (2012-06-29 16:34:42 UTC) #11
commit-bot: I haz the power
8 years, 5 months ago (2012-06-29 18:35:15 UTC) #12
Change committed as 144938

Powered by Google App Engine
This is Rietveld 408576698