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

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

Issue 1164753004: Tidy up CompositorWorkerManager unit tests. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebased Created 5 years, 6 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
« no previous file with comments | « Source/modules/serviceworkers/ServiceWorkerContainerClient.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/serviceworkers/ServiceWorkerGlobalScopeClient.cpp
diff --git a/Source/modules/serviceworkers/ServiceWorkerGlobalScopeClient.cpp b/Source/modules/serviceworkers/ServiceWorkerGlobalScopeClient.cpp
index f42f49f4232a23a15a6111713127fb6fe0680579..415b92719567976dc6c01e8e233de0c40d86adf0 100644
--- a/Source/modules/serviceworkers/ServiceWorkerGlobalScopeClient.cpp
+++ b/Source/modules/serviceworkers/ServiceWorkerGlobalScopeClient.cpp
@@ -43,7 +43,9 @@ const char* ServiceWorkerGlobalScopeClient::supplementName()
ServiceWorkerGlobalScopeClient* ServiceWorkerGlobalScopeClient::from(ExecutionContext* context)
{
- return static_cast<ServiceWorkerGlobalScopeClient*>(WillBeHeapSupplement<WorkerClients>::from(toWorkerGlobalScope(context)->clients(), supplementName()));
+ WorkerClients* clients = toWorkerGlobalScope(context)->clients();
+ ASSERT(clients);
+ return static_cast<ServiceWorkerGlobalScopeClient*>(WillBeHeapSupplement<WorkerClients>::from(clients, supplementName()));
}
void provideServiceWorkerGlobalScopeClientToWorker(WorkerClients* clients, PassOwnPtrWillBeRawPtr<ServiceWorkerGlobalScopeClient> client)
« no previous file with comments | « Source/modules/serviceworkers/ServiceWorkerContainerClient.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698