Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(711)

Unified Diff: content/browser/notifications/notification_database_data_conversions.cc

Issue 1644573002: Notification actions may have an icon url. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/notifications/notification_database_data_conversions.cc
diff --git a/content/browser/notifications/notification_database_data_conversions.cc b/content/browser/notifications/notification_database_data_conversions.cc
index 8621fc13bf7e634d2c03b49f8675de3fb21e4b03..94872091ba40301feb77fcf04a0d8f82d630f1ef 100644
--- a/content/browser/notifications/notification_database_data_conversions.cc
+++ b/content/browser/notifications/notification_database_data_conversions.cc
@@ -71,6 +71,7 @@ bool DeserializeNotificationDatabaseData(const std::string& input,
PlatformNotificationAction action;
action.action = payload_action.action();
action.title = base::UTF8ToUTF16(payload_action.title());
+ action.icon = GURL(payload_action.icon());
notification_data->actions.push_back(action);
}
@@ -125,6 +126,7 @@ bool SerializeNotificationDatabaseData(const NotificationDatabaseData& input,
payload->add_actions();
payload_action->set_action(action.action);
payload_action->set_title(base::UTF16ToUTF8(action.title));
+ payload_action->set_icon(action.icon.spec());
}
NotificationDatabaseDataProto message;

Powered by Google App Engine
This is Rietveld 408576698