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

Unified Diff: chrome/browser/extensions/api/notifications/notifications_api.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/extensions/api/notifications/notifications_api.cc
diff --git a/chrome/browser/extensions/api/notifications/notifications_api.cc b/chrome/browser/extensions/api/notifications/notifications_api.cc
index b870ce898523ec6848cf56a46bbf29e244457af3..4f58ed976439a348f97e8d2951299ecd61fad7fc 100644
--- a/chrome/browser/extensions/api/notifications/notifications_api.cc
+++ b/chrome/browser/extensions/api/notifications/notifications_api.cc
@@ -305,8 +305,8 @@ bool NotificationsApiFunction::CreateNotification(
}
if (options->context_message) {
- optional_fields.context_message =
- base::UTF8ToUTF16(*options->context_message);
+ optional_fields.context_message.message = *options->context_message;
+ optional_fields.context_message.is_origin = false;
}
bool has_image = options->image_bitmap.get() &&
@@ -442,8 +442,8 @@ bool NotificationsApiFunction::UpdateNotification(
}
if (options->context_message) {
- notification->set_context_message(
- base::UTF8ToUTF16(*options->context_message));
+ notification->set_context_message(*options->context_message,
+ false /* is_origin */);
}
gfx::Image image;
« no previous file with comments | « no previous file | chrome/browser/notifications/notification_conversion_helper.cc » ('j') | ui/message_center/DEPS » ('J')

Powered by Google App Engine
This is Rietveld 408576698