mirror of
https://github.com/electron/electron.git
synced 2026-05-02 03:00:22 -04:00
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:
@@ -51,7 +51,7 @@ gin::WrapperInfo Tray::kWrapperInfo = {gin::kEmbedderNativeGin};
|
||||
|
||||
Tray::Tray(v8::Isolate* isolate,
|
||||
v8::Local<v8::Value> image,
|
||||
absl::optional<UUID> guid)
|
||||
std::optional<UUID> guid)
|
||||
: tray_icon_(TrayIcon::Create(guid)) {
|
||||
SetImage(isolate, image);
|
||||
tray_icon_->AddObserver(this);
|
||||
@@ -62,7 +62,7 @@ Tray::~Tray() = default;
|
||||
// static
|
||||
gin::Handle<Tray> Tray::New(gin_helper::ErrorThrower thrower,
|
||||
v8::Local<v8::Value> image,
|
||||
absl::optional<UUID> guid,
|
||||
std::optional<UUID> guid,
|
||||
gin::Arguments* args) {
|
||||
if (!Browser::Get()->is_ready()) {
|
||||
thrower.ThrowError("Cannot create Tray before app is ready");
|
||||
@@ -232,7 +232,7 @@ void Tray::SetToolTip(const std::string& tool_tip) {
|
||||
}
|
||||
|
||||
void Tray::SetTitle(const std::string& title,
|
||||
const absl::optional<gin_helper::Dictionary>& options,
|
||||
const std::optional<gin_helper::Dictionary>& options,
|
||||
gin::Arguments* args) {
|
||||
if (!CheckAlive())
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user