| Index: chrome/browser/download/save_package.cc
|
| ===================================================================
|
| --- chrome/browser/download/save_package.cc (revision 8505)
|
| +++ chrome/browser/download/save_package.cc (working copy)
|
| @@ -947,10 +947,14 @@
|
| filter[filter.size() - 2] = L'\0';
|
|
|
| if (g_should_prompt_for_filename) {
|
| + // Since we take the suggested name from the web page's title, we want to
|
| + // ignore the file extension generated by SaveFileAsWithFilter, since it
|
| + // will always be ".htm".
|
| if (!win_util::SaveFileAsWithFilter(container_hwnd,
|
| suggest_name,
|
| filter,
|
| L"htm",
|
| + true,
|
| &index,
|
| ¶m->saved_main_file_path))
|
| return false;
|
|
|