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

Unified Diff: chrome/browser/notifications/notification_conversion_helper.cc

Issue 1292003004: Elide origins displayed on web notifications. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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: chrome/browser/notifications/notification_conversion_helper.cc
diff --git a/chrome/browser/notifications/notification_conversion_helper.cc b/chrome/browser/notifications/notification_conversion_helper.cc
index b0eec8322be26b339c7c1fb9089b26c4d3258096..526204cf5f8cd2be1952450e89e00c1802ac9eb5 100644
--- a/chrome/browser/notifications/notification_conversion_helper.cc
+++ b/chrome/browser/notifications/notification_conversion_helper.cc
@@ -53,9 +53,9 @@ void NotificationConversionHelper::NotificationToNotificationOptions(
options->event_time.reset(new double(rich_data->timestamp.ToDoubleT()));
- if (!rich_data->context_message.empty())
+ if (!rich_data->context_message.message.empty())
options->context_message.reset(
- new std::string(base::UTF16ToUTF8(rich_data->context_message)));
+ new std::string(rich_data->context_message.message));
if (!rich_data->buttons.empty()) {
scoped_ptr<std::vector<

Powered by Google App Engine
This is Rietveld 408576698