| Index: content/child/service_worker/service_worker_network_provider.cc
|
| diff --git a/content/child/service_worker/service_worker_network_provider.cc b/content/child/service_worker/service_worker_network_provider.cc
|
| index dab3db7517595f4598357183fb9f3af54ad28a42..0632e81e09b3cbaa83e0fbb0e0e0267c160bd782 100644
|
| --- a/content/child/service_worker/service_worker_network_provider.cc
|
| +++ b/content/child/service_worker/service_worker_network_provider.cc
|
| @@ -24,15 +24,6 @@ int GetNextProviderId() {
|
| return sequence.GetNext(); // We start at zero.
|
| }
|
|
|
| -// When the provider is for a sandboxed iframe we use
|
| -// kInvalidServiceWorkerProviderId as the provider type and we don't create
|
| -// ServiceWorkerProviderContext and ServiceWorkerProviderHost.
|
| -int GenerateProviderIdForType(const ServiceWorkerProviderType provider_type) {
|
| - if (provider_type == SERVICE_WORKER_PROVIDER_FOR_SANDBOXED_FRAME)
|
| - return kInvalidServiceWorkerProviderId;
|
| - return GetNextProviderId();
|
| -}
|
| -
|
| } // namespace
|
|
|
| void ServiceWorkerNetworkProvider::AttachToDocumentState(
|
| @@ -121,7 +112,7 @@ ServiceWorkerNetworkProvider::ServiceWorkerNetworkProvider(
|
| ServiceWorkerProviderType provider_type)
|
| : ServiceWorkerNetworkProvider(route_id,
|
| provider_type,
|
| - GenerateProviderIdForType(provider_type)) {}
|
| + GetNextProviderId()) {}
|
|
|
| ServiceWorkerNetworkProvider::ServiceWorkerNetworkProvider()
|
| : provider_id_(kInvalidServiceWorkerProviderId) {}
|
|
|