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

Issue 2444523003: Have net-export's save dialog default to last used save directory (Closed)

Created:
4 years, 2 months ago by wangyix
Modified:
4 years, 1 month ago
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Have net-export's save dialog default to last used save directory When "Start logging to disk" is clicked in chrome://net-export, the pop-up save dialog always defaulted to the home directory. Now, it defaults to the last save directory that was selected. BUG=625296 Committed: https://crrev.com/27ade38287fc58ee03339d9c57c6d3151736b94d Cr-Commit-Position: refs/heads/master@{#433034}

Patch Set 1 #

Total comments: 2

Patch Set 2 : First save dialog defaults to user download path instead of home dir #

Total comments: 2

Patch Set 3 : Added DCHECK_CURRENTLY_ON for functions that access last_save_dir #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -4 lines) Patch
M chrome/browser/ui/webui/net_export_ui.cc View 1 2 4 chunks +16 lines, -4 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 37 (12 generated)
wangyix1
4 years, 2 months ago (2016-10-21 22:55:05 UTC) #2
mmenke
https://codereview.chromium.org/2444523003/diff/1/chrome/browser/ui/webui/net_export_ui.cc File chrome/browser/ui/webui/net_export_ui.cc (right): https://codereview.chromium.org/2444523003/diff/1/chrome/browser/ui/webui/net_export_ui.cc#newcode206 chrome/browser/ui/webui/net_export_ui.cc:206: ShowSelectFileDialog(initial_path); This will show the home directory every time ...
4 years, 1 month ago (2016-10-24 17:04:55 UTC) #3
wangyix
https://codereview.chromium.org/2444523003/diff/1/chrome/browser/ui/webui/net_export_ui.cc File chrome/browser/ui/webui/net_export_ui.cc (right): https://codereview.chromium.org/2444523003/diff/1/chrome/browser/ui/webui/net_export_ui.cc#newcode206 chrome/browser/ui/webui/net_export_ui.cc:206: ShowSelectFileDialog(initial_path); On 2016/10/24 17:04:55, mmenke wrote: > This will ...
4 years, 1 month ago (2016-10-24 23:35:15 UTC) #4
eroman
Can you run a test for Windows too? It may be that simply passing empty ...
4 years, 1 month ago (2016-10-25 20:18:33 UTC) #5
mmenke
On 2016/10/25 20:18:33, eroman wrote: > Can you run a test for Windows too? > ...
4 years, 1 month ago (2016-10-25 20:25:26 UTC) #6
eroman
Functionality wise, I think the spirit of BUG=625296 is that when repeatedly creating NetLog dumps, ...
4 years, 1 month ago (2016-10-25 20:42:16 UTC) #7
eroman
Also, the same comment as on other CLs regarding the description. (The information conveyed in ...
4 years, 1 month ago (2016-10-25 20:45:06 UTC) #8
wangyix
So I finally tried this on Windows, and here's what I found: If we use ...
4 years, 1 month ago (2016-11-11 23:45:54 UTC) #10
wangyix
Another thing to consider is that if we use the empty path approach, the save ...
4 years, 1 month ago (2016-11-11 23:54:47 UTC) #11
mmenke
On 2016/11/11 23:54:47, wangyix wrote: > Another thing to consider is that if we use ...
4 years, 1 month ago (2016-11-14 18:46:08 UTC) #12
mmenke
On 2016/11/14 18:46:08, mmenke wrote: > On 2016/11/11 23:54:47, wangyix wrote: > > Another thing ...
4 years, 1 month ago (2016-11-14 18:47:58 UTC) #13
eroman
I would say use the singleton approach, but with the modification that the first time ...
4 years, 1 month ago (2016-11-16 19:56:55 UTC) #14
wangyix
On 2016/11/16 19:56:55, eroman (slow) wrote: > I would say use the singleton approach, but ...
4 years, 1 month ago (2016-11-16 20:52:27 UTC) #15
eroman
Yeah download path seems fine for initial choice.
4 years, 1 month ago (2016-11-16 21:16:42 UTC) #16
wangyix
On 2016/11/16 21:16:42, eroman (slow) wrote: > Yeah download path seems fine for initial choice. ...
4 years, 1 month ago (2016-11-17 01:12:36 UTC) #17
mmenke
LGTM, just one minor comment. https://codereview.chromium.org/2444523003/diff/20001/chrome/browser/ui/webui/net_export_ui.cc File chrome/browser/ui/webui/net_export_ui.cc (right): https://codereview.chromium.org/2444523003/diff/20001/chrome/browser/ui/webui/net_export_ui.cc#newcode47 chrome/browser/ui/webui/net_export_ui.cc:47: last_save_dir = LAZY_INSTANCE_INITIALIZER; Comment ...
4 years, 1 month ago (2016-11-17 18:50:50 UTC) #18
wangyix
https://codereview.chromium.org/2444523003/diff/20001/chrome/browser/ui/webui/net_export_ui.cc File chrome/browser/ui/webui/net_export_ui.cc (right): https://codereview.chromium.org/2444523003/diff/20001/chrome/browser/ui/webui/net_export_ui.cc#newcode47 chrome/browser/ui/webui/net_export_ui.cc:47: last_save_dir = LAZY_INSTANCE_INITIALIZER; On 2016/11/17 18:50:50, mmenke wrote: > ...
4 years, 1 month ago (2016-11-17 19:46:15 UTC) #19
wangyix
Adding tommycli for OWNER approval.
4 years, 1 month ago (2016-11-17 19:52:19 UTC) #25
eroman
also lgtm
4 years, 1 month ago (2016-11-17 20:17:17 UTC) #26
tommycli
rs lgtm
4 years, 1 month ago (2016-11-17 23:01:56 UTC) #27
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/2444523003/40001
4 years, 1 month ago (2016-11-17 23:10:00 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: chromeos_daisy_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) linux_chromium_clobber_rel_ng on ...
4 years, 1 month ago (2016-11-18 01:14:16 UTC) #31
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/2444523003/40001
4 years, 1 month ago (2016-11-18 01:20:09 UTC) #33
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 1 month ago (2016-11-18 02:57:32 UTC) #35
commit-bot: I haz the power
4 years, 1 month ago (2016-11-18 03:00:57 UTC) #37
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/27ade38287fc58ee03339d9c57c6d3151736b94d
Cr-Commit-Position: refs/heads/master@{#433034}

Powered by Google App Engine
This is Rietveld 408576698