Skip to content

Commit

Permalink
fix: base::DictionaryValue usage in APNS notifs (#34897)
Browse files Browse the repository at this point in the history
  • Loading branch information
codebytere committed Jul 13, 2022
1 parent afd08c9 commit 62aeb74
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion shell/browser/api/electron_api_push_notifications.h
Expand Up @@ -39,7 +39,7 @@ class PushNotifications
PushNotifications& operator=(const PushNotifications&) = delete;

#if BUILDFLAG(IS_MAC)
void OnDidReceiveAPNSNotification(const base::DictionaryValue& user_info);
void OnDidReceiveAPNSNotification(const base::Value::Dict& user_info);
void ResolveAPNSPromiseSetWithToken(const std::string& token_string);
void RejectAPNSPromiseSetWithError(const std::string& error_message);
#endif
Expand Down
2 changes: 1 addition & 1 deletion shell/browser/api/electron_api_push_notifications_mac.mm
Expand Up @@ -53,7 +53,7 @@
}

void PushNotifications::OnDidReceiveAPNSNotification(
const base::DictionaryValue& user_info) {
const base::Value::Dict& user_info) {
Emit("received-apns-notification", user_info);
}

Expand Down
2 changes: 1 addition & 1 deletion shell/browser/mac/electron_application_delegate.mm
Expand Up @@ -193,7 +193,7 @@ - (void)application:(NSApplication*)application
electron::api::PushNotifications::Get();
if (push_notifications) {
electron::api::PushNotifications::Get()->OnDidReceiveAPNSNotification(
electron::NSDictionaryToDictionaryValue(userInfo));
electron::NSDictionaryToValue(userInfo));
}
}

Expand Down

0 comments on commit 62aeb74

Please sign in to comment.