blob: 46e457a3187334f91aa8d8dcd01928393a8915d8 [file] [log] [blame]
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "third_party/blink/public/common/service_worker/service_worker_utils.h"
#include "base/feature_list.h"
#include "services/network/public/cpp/features.h"
#include "third_party/blink/public/common/features.h"
namespace blink {
// static
bool ServiceWorkerUtils::IsServicificationEnabled() {
return base::FeatureList::IsEnabled(network::features::kNetworkService) ||
base::FeatureList::IsEnabled(
blink::features::kServiceWorkerServicification);
}
bool ServiceWorkerUtils::IsImportedScriptUpdateCheckEnabled() {
return base::FeatureList::IsEnabled(
blink::features::kServiceWorkerImportedScriptUpdateCheck);
}
} // namespace blink