chore: replace absl::optional<T> with std::optional<T> (#40928)
* chore: replace absl::optional<T> with std::optional<T> * IWYU
This commit is contained in:
parent
fac964ac0d
commit
892c9d78a3
129 changed files with 419 additions and 397 deletions
|
@ -6,6 +6,7 @@
|
|||
#define ELECTRON_SHELL_BROWSER_BROWSER_H_
|
||||
|
||||
#include <memory>
|
||||
#include <optional>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
|
@ -108,7 +109,7 @@ class Browser : public WindowListObserver {
|
|||
#endif
|
||||
|
||||
// Set/Get the badge count.
|
||||
bool SetBadgeCount(absl::optional<int> count);
|
||||
bool SetBadgeCount(std::optional<int> count);
|
||||
int GetBadgeCount();
|
||||
|
||||
#if BUILDFLAG(IS_WIN)
|
||||
|
@ -374,7 +375,7 @@ class Browser : public WindowListObserver {
|
|||
|
||||
#if BUILDFLAG(IS_WIN)
|
||||
void UpdateBadgeContents(HWND hwnd,
|
||||
const absl::optional<std::string>& badge_content,
|
||||
const std::optional<std::string>& badge_content,
|
||||
const std::string& badge_alt_string);
|
||||
|
||||
// In charge of running taskbar related APIs.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue