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

Unified Diff: content/common/service_worker/service_worker_client_info.cc

Issue 1439333002: Service Worker: Add Clients.get(id) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use HTTP origins instead of HTTPS origins for layout tests Created 4 years, 11 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/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 c864369c0390b67f978afd8652fd16109103c88a..1750b1cb44b432a31d1beba56c0d214fc8343df7 100644
--- a/content/common/service_worker/service_worker_client_info.cc
+++ b/content/common/service_worker/service_worker_client_info.cc
@@ -10,20 +10,23 @@
namespace content {
ServiceWorkerClientInfo::ServiceWorkerClientInfo()
- : page_visibility_state(blink::WebPageVisibilityStateLast),
+ : client_uuid(std::string()),
+ page_visibility_state(blink::WebPageVisibilityStateLast),
is_focused(false),
frame_type(REQUEST_CONTEXT_FRAME_TYPE_LAST),
client_type(blink::WebServiceWorkerClientTypeLast),
last_focus_time(base::TimeTicks()) {}
nhiroki 2016/02/03 09:39:59 Generally, having multiple ctors is not so good be
jungkees 2016/02/03 14:15:07 Thanks for the information and the pointer! Done.
ServiceWorkerClientInfo::ServiceWorkerClientInfo(
+ const std::string& client_uuid,
blink::WebPageVisibilityState page_visibility_state,
bool is_focused,
const GURL& url,
RequestContextFrameType frame_type,
base::TimeTicks last_focus_time,
blink::WebServiceWorkerClientType client_type)
- : page_visibility_state(page_visibility_state),
+ : client_uuid(client_uuid),
+ page_visibility_state(page_visibility_state),
is_focused(is_focused),
url(url),
frame_type(frame_type),

Powered by Google App Engine
This is Rietveld 408576698