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

Unified Diff: chrome/browser/download/download_file_picker_chromeos.cc

Issue 10804026: Fix open dialog not remembering last opened folder on drive (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/download/download_file_picker_chromeos.cc
diff --git a/chrome/browser/download/download_file_picker_chromeos.cc b/chrome/browser/download/download_file_picker_chromeos.cc
index 695c71998160c882c96088b0edea60605935df3b..56f070a495f55979e639c3919f08571b4693b9f2 100644
--- a/chrome/browser/download/download_file_picker_chromeos.cc
+++ b/chrome/browser/download/download_file_picker_chromeos.cc
@@ -10,6 +10,7 @@
#include "chrome/browser/chromeos/gdata/gdata_util.h"
#include "content/public/browser/download_item.h"
#include "content/public/browser/download_manager.h"
+#include "ui/base/dialogs/selected_file_info.h"
using content::DownloadItem;
using content::DownloadManager;
@@ -45,7 +46,17 @@ void DownloadFilePickerChromeOS::InitSuggestedPath(DownloadItem* item) {
void DownloadFilePickerChromeOS::FileSelected(const FilePath& selected_path,
int index,
void* params) {
- FilePath path = selected_path;
+ FileSelectedWithExtraInfo(
+ ui::SelectedFileInfo(selected_path, selected_path),
+ index,
+ params);
+}
+
+void DownloadFilePickerChromeOS::FileSelectedWithExtraInfo(
+ const ui::SelectedFileInfo& file_info,
+ int index,
+ void* params) {
+ FilePath path = file_info.file_path;
file_util::NormalizeFileNameEncoding(&path);
RecordFileSelected(path);
« no previous file with comments | « chrome/browser/download/download_file_picker_chromeos.h ('k') | chrome/browser/download/save_package_file_picker_chromeos.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698