Index: content/common/service_worker/service_worker_types.cc |
diff --git a/content/common/service_worker/service_worker_types.cc b/content/common/service_worker/service_worker_types.cc |
index f483200bf94e55f49ba3fe865f8e9caf2cd0bc79..ebbcb74585feb0f324f5716476ac5a9d726c568e 100644 |
--- a/content/common/service_worker/service_worker_types.cc |
+++ b/content/common/service_worker/service_worker_types.cc |
@@ -135,10 +135,21 @@ bool ServiceWorkerObjectInfo::IsValid() const { |
version_id != kInvalidServiceWorkerVersionId; |
} |
+ServiceWorkerRegistrationOptions::ServiceWorkerRegistrationOptions() |
+ : use_cache(UseCache::DontUse) {} |
+ |
+ServiceWorkerRegistrationOptions::ServiceWorkerRegistrationOptions( |
+ const GURL& scope) |
+ : scope(scope), use_cache(UseCache::DontUse) {} |
nhiroki
2017/03/28 06:49:51
Delegating constructor would work here:
ServiceWo
yuryu
2017/07/20 10:15:12
Done.
|
+ |
+ServiceWorkerRegistrationOptions::ServiceWorkerRegistrationOptions( |
+ const GURL& scope, |
+ UseCache use_cache) |
+ : scope(scope), use_cache(use_cache) {} |
+ |
ServiceWorkerRegistrationObjectInfo::ServiceWorkerRegistrationObjectInfo() |
: handle_id(kInvalidServiceWorkerRegistrationHandleId), |
- registration_id(kInvalidServiceWorkerRegistrationId) { |
-} |
+ registration_id(kInvalidServiceWorkerRegistrationId) {} |
ServiceWorkerClientQueryOptions::ServiceWorkerClientQueryOptions() |
: client_type(blink::WebServiceWorkerClientTypeWindow), |