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

Unified Diff: content/child/service_worker/web_service_worker_impl.cc

Issue 1877283002: ServiceWorker: Remove unused MessageEvent implementation from ServiceWorkerGlobalScope (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 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/child/service_worker/web_service_worker_impl.cc
diff --git a/content/child/service_worker/web_service_worker_impl.cc b/content/child/service_worker/web_service_worker_impl.cc
index 8e85e3bc262ce02abf7134371e8c22a141f4340d..06b22e6c0f3617c0c147c4c60521f0624d551315 100644
--- a/content/child/service_worker/web_service_worker_impl.cc
+++ b/content/child/service_worker/web_service_worker_impl.cc
@@ -22,7 +22,6 @@
using blink::WebMessagePortChannel;
using blink::WebMessagePortChannelArray;
using blink::WebMessagePortChannelClient;
-using blink::WebRuntimeFeatures;
using blink::WebSecurityOrigin;
using blink::WebString;
@@ -51,17 +50,9 @@ void SendPostMessageToWorkerOnMainThread(
const base::string16& message,
const url::Origin& source_origin,
std::unique_ptr<WebMessagePortChannelArray> channels) {
- if (WebRuntimeFeatures::isServiceWorkerExtendableMessageEventEnabled()) {
- thread_safe_sender->Send(new ServiceWorkerHostMsg_PostMessageToWorker(
- handle_id, provider_id, message, source_origin,
- WebMessagePortChannelImpl::ExtractMessagePortIDs(std::move(channels))));
- } else {
- thread_safe_sender->Send(
- new ServiceWorkerHostMsg_DeprecatedPostMessageToWorker(
- handle_id, message,
- WebMessagePortChannelImpl::ExtractMessagePortIDs(
- std::move(channels))));
- }
+ thread_safe_sender->Send(new ServiceWorkerHostMsg_PostMessageToWorker(
+ handle_id, provider_id, message, source_origin,
+ WebMessagePortChannelImpl::ExtractMessagePortIDs(std::move(channels))));
}
} // namespace

Powered by Google App Engine
This is Rietveld 408576698