Index: content/common/service_worker/service_worker_client_info.cc |
diff --git a/content/common/service_worker/service_worker_client_info.cc b/content/common/service_worker/service_worker_client_info.cc |
index e36af87fa6dc4178c37b22aaad13f9de765d8edb..3d9d554af4f4091304f031d0d3c5a6c6a05e3e0d 100644 |
--- a/content/common/service_worker/service_worker_client_info.cc |
+++ b/content/common/service_worker/service_worker_client_info.cc |
@@ -10,8 +10,7 @@ |
namespace content { |
ServiceWorkerClientInfo::ServiceWorkerClientInfo() |
- : client_id(kInvalidServiceWorkerClientId), |
- page_visibility_state(blink::WebPageVisibilityStateLast), |
+ : page_visibility_state(blink::WebPageVisibilityStateLast), |
is_focused(false), |
frame_type(REQUEST_CONTEXT_FRAME_TYPE_LAST), |
client_type(blink::WebServiceWorkerClientTypeLast) { |
@@ -23,8 +22,7 @@ ServiceWorkerClientInfo::ServiceWorkerClientInfo( |
const GURL& url, |
RequestContextFrameType frame_type, |
blink::WebServiceWorkerClientType client_type) |
- : client_id(kInvalidServiceWorkerClientId), |
- page_visibility_state(page_visibility_state), |
+ : page_visibility_state(page_visibility_state), |
is_focused(is_focused), |
url(url), |
frame_type(frame_type), |
@@ -40,7 +38,7 @@ bool ServiceWorkerClientInfo::IsEmpty() const { |
} |
bool ServiceWorkerClientInfo::IsValid() const { |
- return !IsEmpty() && client_id != kInvalidServiceWorkerClientId; |
+ return !IsEmpty() && !client_uuid.empty(); |
} |
} // namespace content |