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

Unified Diff: content/renderer/push_messaging/push_messaging_dispatcher.cc

Issue 1816123002: Add testing for subscription from service workers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Code review comments incorporated and all tests working Created 4 years, 9 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/renderer/push_messaging/push_messaging_dispatcher.cc
diff --git a/content/renderer/push_messaging/push_messaging_dispatcher.cc b/content/renderer/push_messaging/push_messaging_dispatcher.cc
index f505f93ed80e2858c01d844283293b7e76b93b5b..81c587fc4099768318c88bec586bd3e49ff35fe5 100644
--- a/content/renderer/push_messaging/push_messaging_dispatcher.cc
+++ b/content/renderer/push_messaging/push_messaging_dispatcher.cc
@@ -55,7 +55,7 @@ void PushMessagingDispatcher::subscribe(
} else {
PushSubscriptionOptions content_options;
content_options.user_visible_only = options.userVisibleOnly;
- content_options.sender_info = options.applicationServerKey.utf8();
+ content_options.sender_info = options.applicationServerKey.latin1();
Michael van Ouwerkerk 2016/03/30 09:50:04 Same here.
harkness 2016/03/30 10:51:49 Done.
DoSubscribe(service_worker_registration, content_options, callbacks);
}
}

Powered by Google App Engine
This is Rietveld 408576698