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

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

Issue 155266: Ensure proper paths when saving pages with no title (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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
« no previous file with comments | « no previous file | chrome/browser/download/save_package.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/download/save_package.h
===================================================================
--- chrome/browser/download/save_package.h (revision 20414)
+++ chrome/browser/download/save_package.h (working copy)
@@ -236,11 +236,13 @@
saved_failed_items_.size());
}
+ // Retrieve the preference for the directory to save pages to.
+ static FilePath GetSaveDirPreference(PrefService* prefs);
+
// Helper function for preparing suggested name for the SaveAs Dialog. The
- // suggested name is composed of the default save path and the web document's
- // title.
- static FilePath GetSuggestNameForSaveAs(
- PrefService* prefs, const FilePath& name, bool can_save_as_complete);
+ // suggested name is determined by the web document's title.
+ static FilePath GetSuggestedNameForSaveAs(const FilePath& name,
+ bool can_save_as_complete);
// Ensure that the file name has a proper extension for HTML by adding ".htm"
// if necessary.
@@ -306,6 +308,7 @@
scoped_refptr<SelectFileDialog> select_file_dialog_;
friend class SavePackageTest;
+
DISALLOW_COPY_AND_ASSIGN(SavePackage);
};
« no previous file with comments | « no previous file | chrome/browser/download/save_package.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698