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
|
@ -516,10 +516,10 @@ v8::Local<v8::Promise> Browser::GetApplicationInfoForProtocol(
|
|||
return handle;
|
||||
}
|
||||
|
||||
bool Browser::SetBadgeCount(absl::optional<int> count) {
|
||||
absl::optional<std::string> badge_content;
|
||||
bool Browser::SetBadgeCount(std::optional<int> count) {
|
||||
std::optional<std::string> badge_content;
|
||||
if (count.has_value() && count.value() == 0) {
|
||||
badge_content = absl::nullopt;
|
||||
badge_content = std::nullopt;
|
||||
} else {
|
||||
badge_content = badging::BadgeManager::GetBadgeString(count);
|
||||
}
|
||||
|
@ -560,7 +560,7 @@ bool Browser::SetBadgeCount(absl::optional<int> count) {
|
|||
|
||||
void Browser::UpdateBadgeContents(
|
||||
HWND hwnd,
|
||||
const absl::optional<std::string>& badge_content,
|
||||
const std::optional<std::string>& badge_content,
|
||||
const std::string& badge_alt_string) {
|
||||
SkBitmap badge;
|
||||
if (badge_content) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue