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

Unified Diff: content/browser/service_worker/service_worker_internals_ui.cc

Issue 208843004: Add the beginning of a public Service Worker API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix kinuko's comments. Created 6 years, 9 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/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

Powered by Google App Engine
This is Rietveld 408576698