diff --git a/shell/browser/api/electron_api_notification.cc b/shell/browser/api/electron_api_notification.cc index 9d329fe9a0..69ab9341d0 100644 --- a/shell/browser/api/electron_api_notification.cc +++ b/shell/browser/api/electron_api_notification.cc @@ -58,10 +58,7 @@ Notification::Notification(gin::Arguments* args) { opts.Get("title", &title_); opts.Get("subtitle", &subtitle_); opts.Get("body", &body_); - has_icon_ = opts.Get("icon", &icon_); - if (has_icon_) { - opts.Get("icon", &icon_path_); - } + opts.Get("icon", &icon_); opts.Get("silent", &silent_); opts.Get("replyPlaceholder", &reply_placeholder_); opts.Get("urgency", &urgency_); diff --git a/shell/browser/api/electron_api_notification.h b/shell/browser/api/electron_api_notification.h index eabe2eec61..123834eb1a 100644 --- a/shell/browser/api/electron_api_notification.h +++ b/shell/browser/api/electron_api_notification.h @@ -101,8 +101,6 @@ class Notification : public gin::Wrappable, std::u16string subtitle_; std::u16string body_; gfx::Image icon_; - std::u16string icon_path_; - bool has_icon_ = false; bool silent_ = false; bool has_reply_ = false; std::u16string timeout_type_;