Index: content/browser/service_worker/service_worker_internals_ui.cc |
diff --git a/content/browser/service_worker/service_worker_internals_ui.cc b/content/browser/service_worker/service_worker_internals_ui.cc |
index 1836e109bdc3c757e46d05f86c3859fd42b3e331..18fef0805ab1afe9e36025a86df02b2beb3760d3 100644 |
--- a/content/browser/service_worker/service_worker_internals_ui.cc |
+++ b/content/browser/service_worker/service_worker_internals_ui.cc |
@@ -124,7 +124,8 @@ void ServiceWorkerInternalsUI::GetAllRegistrations(const ListValue* args) { |
void ServiceWorkerInternalsUI::AddContextFromStoragePartition( |
StoragePartition* partition) { |
scoped_refptr<ServiceWorkerContextWrapper> context = |
- partition->GetServiceWorkerContext(); |
+ static_cast<ServiceWorkerContextWrapper*>( |
+ partition->GetServiceWorkerContext()); |
BrowserThread::PostTask( |
BrowserThread::IO, |
FROM_HERE, |
@@ -142,7 +143,8 @@ void FindContext(const base::FilePath& partition_path, |
StoragePartition* storage_partition) { |
if (storage_partition->GetPath() == partition_path) { |
*result_partition = storage_partition; |
- *result_context = storage_partition->GetServiceWorkerContext(); |
+ *result_context = static_cast<ServiceWorkerContextWrapper*>( |
+ storage_partition->GetServiceWorkerContext()); |
} |
} |
} // namespace |