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

Issue 10804026: Fix open dialog not remembering last opened folder on drive (Closed)

Created:
8 years, 5 months ago by tbarzic
Modified:
8 years, 5 months ago
Reviewers:
asanka, achuithb, jam, sky
CC:
chromium-reviews, mihaip-chromium-reviews_chromium.org, nkostylev+watch_chromium.org, jam, rdsmith+dwatch_chromium.org, joi+watch-content_chromium.org, Aaron Boodman, rginda+watch_chromium.org, arv (Not doing code reviews), darin-cc_chromium.org, oshima+watch_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

Fix open dialog not remembering last opened folder on drive The problem is dialog passes file's local cache path in FileSelected. Last selected directory paths get set to cache dir, which file manager does not understand, so it opens default dir. In order to properly remember last selected dir, we should also pass file's drive path to dialog listeners and use it to remember last selected dir. BUG=126923 TEST=manual Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=148492

Patch Set 1 #

Patch Set 2 : fix tests #

Patch Set 3 : rebase + nits #

Patch Set 4 : . #

Total comments: 8

Patch Set 5 : feedback from achuith #

Patch Set 6 : .. #

Patch Set 7 : . #

Patch Set 8 : remofe file manager change #

Total comments: 4

Patch Set 9 : . #

Patch Set 10 : . #

Patch Set 11 : fix tests #

Patch Set 12 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+130 lines, -68 lines) Patch
M chrome/browser/chromeos/extensions/file_browser_private_api.h View 1 2 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/extensions/file_browser_private_api.cc View 1 2 3 4 5 6 7 8 9 10 11 14 chunks +25 lines, -28 lines 0 comments Download
M chrome/browser/download/download_file_picker_chromeos.h View 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/download/download_file_picker_chromeos.cc View 2 chunks +12 lines, -1 line 0 comments Download
M chrome/browser/download/save_package_file_picker_chromeos.h View 2 chunks +9 lines, -1 line 0 comments Download
M chrome/browser/download/save_package_file_picker_chromeos.cc View 2 chunks +13 lines, -2 lines 0 comments Download
M chrome/browser/file_select_helper.cc View 1 2 3 4 5 6 7 8 6 chunks +10 lines, -12 lines 0 comments Download
M chrome/browser/ui/browser.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/browser.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +11 lines, -1 line 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 2 chunks +6 lines, -4 lines 0 comments Download
M content/browser/renderer_host/render_view_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M content/common/view_messages.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -1 line 0 comments Download
M content/renderer/pepper/pepper_file_chooser_host_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M ui/base/dialogs/select_file_dialog.cc View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -2 lines 0 comments Download
M ui/base/dialogs/selected_file_info.h View 1 2 3 4 5 6 7 8 9 2 chunks +12 lines, -5 lines 0 comments Download
M ui/base/dialogs/selected_file_info.cc View 1 2 3 4 5 6 7 8 1 chunk +7 lines, -4 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
tbarzic
Please, take a look: achuith: chromeos part asanka: downloads sky: ui/*, chrome/browser/ui/* jam: content/*
8 years, 5 months ago (2012-07-24 17:11:55 UTC) #1
achuithb
http://codereview.chromium.org/10804026/diff/15001/chrome/browser/ui/browser.cc File chrome/browser/ui/browser.cc (right): http://codereview.chromium.org/10804026/diff/15001/chrome/browser/ui/browser.cc#newcode1767 chrome/browser/ui/browser.cc:1767: FilePath path = file_info.real_path; nit: const FilePath& would save ...
8 years, 5 months ago (2012-07-24 20:13:05 UTC) #2
jam
content changes lgtm (didn't look at entire change, just those three files)
8 years, 5 months ago (2012-07-24 20:30:56 UTC) #3
tbarzic
http://codereview.chromium.org/10804026/diff/15001/chrome/browser/ui/browser.cc File chrome/browser/ui/browser.cc (right): http://codereview.chromium.org/10804026/diff/15001/chrome/browser/ui/browser.cc#newcode1767 chrome/browser/ui/browser.cc:1767: FilePath path = file_info.real_path; On 2012/07/24 20:13:05, achuith.bhandarkar wrote: ...
8 years, 5 months ago (2012-07-25 02:02:54 UTC) #4
achuithb
http://codereview.chromium.org/10804026/diff/22003/ui/base/dialogs/selected_file_info.h File ui/base/dialogs/selected_file_info.h (right): http://codereview.chromium.org/10804026/diff/22003/ui/base/dialogs/selected_file_info.h#newcode19 ui/base/dialogs/selected_file_info.h:19: FilePath file_path; What's the rationale for changing this name ...
8 years, 5 months ago (2012-07-25 18:11:23 UTC) #5
tbarzic
https://chromiumcodereview.appspot.com/10804026/diff/22003/ui/base/dialogs/selected_file_info.h File ui/base/dialogs/selected_file_info.h (right): https://chromiumcodereview.appspot.com/10804026/diff/22003/ui/base/dialogs/selected_file_info.h#newcode19 ui/base/dialogs/selected_file_info.h:19: FilePath file_path; On 2012/07/25 18:11:23, achuith.bhandarkar wrote: > What's ...
8 years, 5 months ago (2012-07-25 18:42:59 UTC) #6
achuithb
lgtm
8 years, 5 months ago (2012-07-25 18:48:43 UTC) #7
asanka
chrome/downloads/ LGTM
8 years, 5 months ago (2012-07-25 19:00:07 UTC) #8
sky
LGTM
8 years, 5 months ago (2012-07-25 21:13:43 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tbarzic@chromium.org/10804026/19020
8 years, 5 months ago (2012-07-26 01:08:29 UTC) #10
commit-bot: I haz the power
8 years, 5 months ago (2012-07-26 02:31:12 UTC) #11
Change committed as 148492

Powered by Google App Engine
This is Rietveld 408576698