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

Issue 12662032: Merge SavePackageFilePicker{,ChromeOS} (Closed)

Created:
7 years, 9 months ago by benjhayden
Modified:
7 years, 6 months ago
CC:
chromium-reviews, benjhayden+dwatch_chromium.org, rdsmith+dwatch_chromium.org, mtomasz
Visibility:
Public.

Description

Merge SavePackageFilePicker{,ChromeOS} Move prefs::kSaveFileDefaultDirectory into DownloadPrefs. Merge ChromeDownloadManagerDelegate::last_download_path_ with kSaveFileDefaultDirectory. Add RegisterOverlayPref(kSaveFileDefaultDirectory) to PrefsTabHelper::InitIncognitoUserPrefStore in order to prevent leaking the path to the on-record prefs. When the user sets kDownloadDefaultDirectory in chrome://settings, also set kSaveFileDefaultDirectory so that the save file picker shows that path. bauerb: chrome/browser/browsing_data/ + chrome/browser/prefs/ + chrome/browser/ui/prefs/ achuith: chrome/browser/chromeos/ dbeam: chrome/browser/ui/webui/options/ BUG=179520 BUG=102782 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=203140

Patch Set 1 : @r196175 #

Total comments: 8

Patch Set 2 : @r197032 #

Total comments: 12

Patch Set 3 : @r198452 #

Total comments: 14

Patch Set 4 : @r202555 #

Patch Set 5 : @r202870 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+222 lines, -416 lines) Patch
M chrome/browser/browsing_data/browsing_data_remover.cc View 1 2 3 4 3 chunks +5 lines, -9 lines 0 comments Download
M chrome/browser/chromeos/preferences_unittest.cc View 1 2 2 chunks +0 lines, -2 lines 0 comments Download
M chrome/browser/download/chrome_download_manager_delegate.h View 1 2 3 4 4 chunks +0 lines, -15 lines 0 comments Download
M chrome/browser/download/chrome_download_manager_delegate.cc View 1 2 3 9 chunks +6 lines, -64 lines 0 comments Download
M chrome/browser/download/chrome_download_manager_delegate_unittest.cc View 1 2 3 4 4 chunks +3 lines, -5 lines 0 comments Download
M chrome/browser/download/download_browsertest.cc View 1 2 3 4 3 chunks +32 lines, -0 lines 0 comments Download
M chrome/browser/download/download_prefs.h View 1 2 3 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/download/download_prefs.cc View 1 2 3 3 chunks +22 lines, -0 lines 0 comments Download
M chrome/browser/download/download_target_determiner.h View 1 2 3 4 chunks +0 lines, -7 lines 0 comments Download
M chrome/browser/download/download_target_determiner.cc View 1 2 3 4 5 chunks +4 lines, -7 lines 0 comments Download
M chrome/browser/download/download_target_determiner_unittest.cc View 1 2 3 12 chunks +8 lines, -24 lines 0 comments Download
M chrome/browser/download/save_package_file_picker.h View 1 2 2 chunks +9 lines, -6 lines 0 comments Download
M chrome/browser/download/save_package_file_picker.cc View 1 2 3 6 chunks +117 lines, -61 lines 0 comments Download
M chrome/browser/download/save_package_file_picker_chromeos.h View 1 1 chunk +0 lines, -55 lines 0 comments Download
D chrome/browser/download/save_package_file_picker_chromeos.cc View 1 1 chunk +0 lines, -139 lines 0 comments Download
M chrome/browser/download/save_page_browsertest.cc View 1 2 3 4 8 chunks +9 lines, -18 lines 0 comments Download
M chrome/browser/prefs/browser_prefs.cc View 1 2 3 4 2 chunks +0 lines, -2 lines 0 comments Download
M chrome/browser/ui/prefs/prefs_tab_helper.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/webui/options/browser_options_handler.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 29 (0 generated)
benjhayden
It's starting to look like the SavePackageFilePickers need to be refactored. If you have ideas ...
7 years, 8 months ago (2013-04-24 18:15:10 UTC) #1
asanka
The general approach makes sense. I commented on the issue about some other considerations about ...
7 years, 8 months ago (2013-04-24 22:03:13 UTC) #2
Randy Smith (Not in Mondays)
So the two thoughts that come to mind about refactoring are: a) the joking one ...
7 years, 8 months ago (2013-04-25 17:58:55 UTC) #3
asanka
FYI There's some discussions on https://code.google.com/p/chromium/issues/detail?id=179520 about the how the last save directory should behave. ...
7 years, 8 months ago (2013-04-25 19:01:39 UTC) #4
benjhayden
https://codereview.chromium.org/12662032/diff/11001/chrome/browser/download/chrome_download_manager_delegate.cc File chrome/browser/download/chrome_download_manager_delegate.cc (right): https://codereview.chromium.org/12662032/diff/11001/chrome/browser/download/chrome_download_manager_delegate.cc#newcode191 chrome/browser/download/chrome_download_manager_delegate.cc:191: std::string path_string = WideToUTF8(path.DirName().value()); On 2013/04/25 19:01:39, asanka wrote: ...
7 years, 7 months ago (2013-04-30 21:11:12 UTC) #5
Randy Smith (Not in Mondays)
Second round of comments. Looks basically good. https://codereview.chromium.org/12662032/diff/65001/chrome/browser/download/save_package_file_picker.cc File chrome/browser/download/save_package_file_picker.cc (right): https://codereview.chromium.org/12662032/diff/65001/chrome/browser/download/save_package_file_picker.cc#newcode76 chrome/browser/download/save_package_file_picker.cc:76: ChromeDownloadManagerDelegate::DisableSafeBrowsing(download); If ...
7 years, 7 months ago (2013-05-01 19:18:43 UTC) #6
benjhayden
https://codereview.chromium.org/12662032/diff/65001/chrome/browser/download/save_package_file_picker.cc File chrome/browser/download/save_package_file_picker.cc (right): https://codereview.chromium.org/12662032/diff/65001/chrome/browser/download/save_package_file_picker.cc#newcode76 chrome/browser/download/save_package_file_picker.cc:76: ChromeDownloadManagerDelegate::DisableSafeBrowsing(download); On 2013/05/01 19:18:43, rdsmith wrote: > If I'm ...
7 years, 7 months ago (2013-05-06 20:05:18 UTC) #7
Randy Smith (Not in Mondays)
Only remaining concern is around the prefs integration that we talked about offline. (Summary: Glancing ...
7 years, 7 months ago (2013-05-06 21:46:02 UTC) #8
asanka
https://codereview.chromium.org/12662032/diff/65001/chrome/browser/browsing_data/browsing_data_remover.cc File chrome/browser/browsing_data/browsing_data_remover.cc (left): https://codereview.chromium.org/12662032/diff/65001/chrome/browser/browsing_data/browsing_data_remover.cc#oldcode326 chrome/browser/browsing_data/browsing_data_remover.cc:326: download_manager_delegate->ClearLastDownloadPath(); Why aren't you resetting kSaveFileDefaultDirectory ? https://codereview.chromium.org/12662032/diff/177001/chrome/browser/download/chrome_download_manager_delegate.cc File ...
7 years, 7 months ago (2013-05-07 15:15:12 UTC) #9
benjhayden
https://codereview.chromium.org/12662032/diff/65001/chrome/browser/browsing_data/browsing_data_remover.cc File chrome/browser/browsing_data/browsing_data_remover.cc (left): https://codereview.chromium.org/12662032/diff/65001/chrome/browser/browsing_data/browsing_data_remover.cc#oldcode326 chrome/browser/browsing_data/browsing_data_remover.cc:326: download_manager_delegate->ClearLastDownloadPath(); On 2013/05/07 15:15:12, asanka wrote: > Why aren't ...
7 years, 7 months ago (2013-05-17 20:31:53 UTC) #10
benjhayden
Figured out why the save file path was leaking. SetValue forwards to the underlying (on-record) ...
7 years, 7 months ago (2013-05-17 21:23:52 UTC) #11
Randy Smith (Not in Mondays)
LGTM.
7 years, 7 months ago (2013-05-17 21:38:45 UTC) #12
asanka
LGTM
7 years, 7 months ago (2013-05-18 04:29:04 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/benjhayden@chromium.org/12662032/294001
7 years, 6 months ago (2013-05-29 13:42:36 UTC) #14
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=5587
7 years, 6 months ago (2013-05-29 14:13:34 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/benjhayden@chromium.org/12662032/294001
7 years, 6 months ago (2013-05-29 14:30:53 UTC) #16
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=5596
7 years, 6 months ago (2013-05-29 14:50:44 UTC) #17
benjhayden
@r202870
7 years, 6 months ago (2013-05-29 15:34:50 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/benjhayden@chromium.org/12662032/321002
7 years, 6 months ago (2013-05-29 17:46:10 UTC) #19
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=5675
7 years, 6 months ago (2013-05-29 18:01:16 UTC) #20
benjhayden
bauerb: chrome/browser/browsing_data/ + chrome/browser/prefs/ + chrome/browser/ui/prefs/ achuith: chrome/browser/chromeos/ estade: chrome/browser/ui/webui/options/
7 years, 6 months ago (2013-05-29 18:14:14 UTC) #21
achuithb
lgtm
7 years, 6 months ago (2013-05-29 18:15:40 UTC) #22
Bernhard Bauer
chrome/browser/browsing_data/ + chrome/browser/ + chrome/browser/ui/prefs/ LGTM
7 years, 6 months ago (2013-05-29 19:26:36 UTC) #23
benjhayden
dbeam: chrome/browser/ui/webui/options/
7 years, 6 months ago (2013-05-29 20:39:14 UTC) #24
Dan Beam
rs lgtm
7 years, 6 months ago (2013-05-29 20:48:40 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/benjhayden@chromium.org/12662032/321002
7 years, 6 months ago (2013-05-29 20:56:46 UTC) #26
commit-bot: I haz the power
Commit queue rejected this change because the description was changed between the time the change ...
7 years, 6 months ago (2013-05-30 00:23:55 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/benjhayden@chromium.org/12662032/321002
7 years, 6 months ago (2013-05-30 13:26:36 UTC) #28
commit-bot: I haz the power
7 years, 6 months ago (2013-05-30 14:15:46 UTC) #29
Message was sent while issue was closed.
Change committed as 203140

Powered by Google App Engine
This is Rietveld 408576698