ckerr

#47428: refactor: have ShowSaveDialogSync() return a std::optional<base::FilePath>

Merged
Created: Jun 9, 2025, 7:52:51 PM
Merged: Jun 12, 2025, 5:25:40 AM
4 comments
Target: main

Description of Change

A small side refactor to prefer return values to output parameters in ShowSaveDialogSync().

-  bool ShowSaveDialogSync(const DialogSettings& settings, base::FilePath* path);
+  std::optional<base::FilePath> ShowSaveDialogSync(const DialogSettings& settings);

Checklist

Release Notes

Notes: none

Backports

35-x-y
Merged
PR Number
#47451
Merged At
Jun 12, 2025, 10:34:05 AM
Released In
Not yet
Release Date
Not yet
36-x-y
Merged
PR Number
#47452
Merged At
Jun 13, 2025, 3:03:06 AM
Released In
v36.5.0
Release Date
Jun 17, 2025, 3:38:08 PM
37-x-y
Merged
PR Number
#47453
Merged At
Jun 13, 2025, 3:03:03 AM
Released In
v37.0.0-beta.6
Release Date
Jun 16, 2025, 8:31:33 AM

Semver Impact

Major
Breaking changes
Minor
New features
Patch
Bug fixes
None
Docs, tests, etc.

Semantic Versioning helps users understand the impact of updates:

  • Major (X.y.z): Breaking changes that may require code modifications
  • Minor (x.Y.z): New features that maintain backward compatibility
  • Patch (x.y.Z): Bug fixes that don't change the API
  • None: Changes that don't affect using facing parts of Electron