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

Unified Diff: chrome/browser/download/download_manager.h

Issue 6973052: When the download folder does not exist, change the download folder to a user's "Downloads" (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Redirect "http://mock.testfile.http/<random path>" to "chrome/test/data/a.htm" Created 9 years, 4 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_manager.h
diff --git a/chrome/browser/download/download_manager.h b/chrome/browser/download/download_manager.h
index fe4e602c479933382dcec440de37772a24a674bd..8f33c8219b670f414b6b469b7c8687e6714a46ab 100644
--- a/chrome/browser/download/download_manager.h
+++ b/chrome/browser/download/download_manager.h
@@ -87,7 +87,9 @@ class DownloadManager
// Called immediately after the DownloadManager puts up a select file
// dialog.
// |id| indicates which download opened the dialog.
- virtual void SelectFileDialogDisplayed(int32 id) {}
+ // |suggested_path| indicates the path suggested in the dialog.
+ virtual void SelectFileDialogDisplayed(
+ int32 id, const FilePath& suggested_path) {}
protected:
virtual ~Observer() {}
@@ -324,7 +326,7 @@ class DownloadManager
// stalls from interacting with the file system.
void CheckIfSuggestedPathExists(int32 download_id,
DownloadStateInfo state,
- const FilePath& default_path);
+ const FilePath& download_save_dir);
// Called on the UI thread once the DownloadManager has determined whether the
// suggested file path exists.

Powered by Google App Engine
This is Rietveld 408576698