Fix assertions with Save As dialog

Fixes some issues introduced by 8e79307a62 (see #3314) and
6354d8daf1 (see #3239).

To test:
- Run `cefclient --url=chrome://net-export`
- Click the "Start Logging to Disk" button
- Exit cefclient; get no debug assertions
This commit is contained in:
Marshall Greenblatt
2024-06-20 13:55:23 -04:00
parent 7d739b3d33
commit 5ab32347b8
3 changed files with 19 additions and 7 deletions

View File

@@ -85,7 +85,9 @@ class CefFileDialogManager {
ui::SelectFileDialog::Listener* listener,
void* params,
const std::vector<base::FilePath>& paths);
void SelectFileDoneByListenerCallback(bool listener_destroyed);
void SelectFileDoneByListenerCallback(
ui::SelectFileDialog::Listener* listener,
bool listener_destroyed);
// CefBrowserHostBase pointer is guaranteed to outlive this object.
const raw_ptr<CefBrowserHostBase> browser_;