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

Unified Diff: Source/modules/serviceworkers/ServiceWorkerClients.cpp

Issue 783663002: Implement ServiceWorkerClient attributes [1/3] (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years 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: Source/modules/serviceworkers/ServiceWorkerClients.cpp
diff --git a/Source/modules/serviceworkers/ServiceWorkerClients.cpp b/Source/modules/serviceworkers/ServiceWorkerClients.cpp
index 0e748451d320d49c6611e848c349fea35bd5ec52..86ba8f3be701102be0549bdf29b0a113fdd3966f 100644
--- a/Source/modules/serviceworkers/ServiceWorkerClients.cpp
+++ b/Source/modules/serviceworkers/ServiceWorkerClients.cpp
@@ -26,6 +26,9 @@ namespace {
{
OwnPtr<WebType> webClients = adoptPtr(webClientsRaw);
HeapVector<Member<ServiceWorkerClient> > clients;
+ for (size_t i = 0; i < webClients->clients.size(); ++i) {
+ clients.append(ServiceWorkerClient::create(webClients->clients[i].clientID));
+ }
for (size_t i = 0; i < webClients->clientIDs.size(); ++i) {
clients.append(ServiceWorkerClient::create(webClients->clientIDs[i]));
}
« no previous file with comments | « no previous file | Source/modules/serviceworkers/ServiceWorkerContainer.h » ('j') | public/platform/WebServiceWorkerClientsInfo.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698