Skip to content

Commit

Permalink
Remove a dead function.
Browse files Browse the repository at this point in the history
BUG=73098

Review URL: https://codereview.chromium.org/478463002

Cr-Commit-Position: refs/heads/master@{#289852}
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@289852 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
erikwright@chromium.org committed Aug 15, 2014
1 parent b03ad02 commit a723bc2
Showing 1 changed file with 0 additions and 30 deletions.
30 changes: 0 additions & 30 deletions ui/shell_dialogs/select_file_dialog_win.cc
Original file line number Diff line number Diff line change
Expand Up @@ -358,36 +358,6 @@ bool SaveFileAsWithFilter(HWND owner,
return true;
}

// Prompt the user for location to save a file. 'suggested_name' is a full path
// that gives the dialog box a hint as to how to initialize itself.
// For example, a 'suggested_name' of:
// "C:\Documents and Settings\jojo\My Documents\picture.png"
// will start the dialog in the "C:\Documents and Settings\jojo\My Documents\"
// directory, and filter for .png file types.
// 'owner' is the window to which the dialog box is modal, NULL for a modeless
// dialog box.
// On success, returns true and 'final_name' contains the full path of the file
// that the user chose. On error, returns false, and 'final_name' is not
// modified.
bool SaveFileAs(HWND owner,
const std::wstring& suggested_name,
std::wstring* final_name) {
std::wstring file_ext =
base::FilePath(suggested_name).Extension().insert(0, L"*");
std::wstring filter = FormatFilterForExtensions(
std::vector<std::wstring>(1, file_ext),
std::vector<std::wstring>(),
true);
unsigned index = 1;
return SaveFileAsWithFilter(owner,
suggested_name,
filter,
L"",
false,
&index,
final_name);
}

// Implementation of SelectFileDialog that shows a Windows common dialog for
// choosing a file or folder.
class SelectFileDialogImpl : public ui::SelectFileDialog,
Expand Down

0 comments on commit a723bc2

Please sign in to comment.