summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views
diff options
context:
space:
mode:
authorpaulg@google.com <paulg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-23 19:42:33 +0000
committerpaulg@google.com <paulg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-23 19:42:33 +0000
commit65333c20ddb320cc0b5f5fd377d2a870f0e442fc (patch)
tree9ed584c46cd19bc97266d893d8d9426e389093b4 /chrome/browser/views
parent1fead07102dd798a44fd501f56002dff9ccae8e3 (diff)
downloadchromium_src-65333c20ddb320cc0b5f5fd377d2a870f0e442fc.zip
chromium_src-65333c20ddb320cc0b5f5fd377d2a870f0e442fc.tar.gz
chromium_src-65333c20ddb320cc0b5f5fd377d2a870f0e442fc.tar.bz2
Fix a bug when saving web pages that have a period in their title.
The save dialog code attempts to generate a file extension based on the suggested name provided to it, which in the case of saving a web page is the title. If that title contains a '.' character, it treats anything that follows as the file extension and appends it to the name the user selects. For example, saving a page with the title "Google Inc. - A search engine" and the user choosing the save name as "Google" will result in the saved file being named "Google. - A search engine.htm" when it should be "Google.htm". In the case of saving a web page, we can ignore trying to figure out the file extension since we already know it will be ".htm". BUG=6105 (http://crbug.com/6105) Review URL: http://codereview.chromium.org/18699 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8569 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views')
-rw-r--r--chrome/browser/views/shell_dialogs.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/views/shell_dialogs.cc b/chrome/browser/views/shell_dialogs.cc
index ab85d0a..be3da01 100644
--- a/chrome/browser/views/shell_dialogs.cc
+++ b/chrome/browser/views/shell_dialogs.cc
@@ -304,7 +304,7 @@ void SelectFileDialogImpl::ExecuteSelectFile(
} else if (type == SELECT_SAVEAS_FILE) {
unsigned index = 0;
success = win_util::SaveFileAsWithFilter(run_state.owner, default_path,
- filter, default_extension, &index, &path);
+ filter, default_extension, false, &index, &path);
DisableOwner(run_state.owner);
} else if (type == SELECT_OPEN_FILE) {
success = RunOpenFileDialog(title, filter, run_state.owner, &path);