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

Unified Diff: content/child/service_worker/service_worker_message_filter.cc

Issue 506093002: Remove implicit conversions from scoped_refptr to T* in content/*/service_worker/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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/child/service_worker/service_worker_message_filter.cc
diff --git a/content/child/service_worker/service_worker_message_filter.cc b/content/child/service_worker/service_worker_message_filter.cc
index 34588ba09a4f11a2c1eace8800719bd5739e6dbc..15ac1d6ed4e702d12e93b7636dfd55dd97a65b4f 100644
--- a/content/child/service_worker/service_worker_message_filter.cc
+++ b/content/child/service_worker/service_worker_message_filter.cc
@@ -82,7 +82,7 @@ void ServiceWorkerMessageFilter::OnStaleRegistered(
int thread_id,
int request_id,
const ServiceWorkerRegistrationObjectInfo& info) {
- SendRegistrationObjectDestroyed(thread_safe_sender_, info.handle_id);
+ SendRegistrationObjectDestroyed(thread_safe_sender_.get(), info.handle_id);
}
void ServiceWorkerMessageFilter::OnStaleSetVersionAttributes(
@@ -91,20 +91,21 @@ void ServiceWorkerMessageFilter::OnStaleSetVersionAttributes(
int registration_handle_id,
int changed_mask,
const ServiceWorkerVersionAttributes& attributes) {
- SendServiceWorkerObjectDestroyed(thread_safe_sender_,
+ SendServiceWorkerObjectDestroyed(thread_safe_sender_.get(),
attributes.installing.handle_id);
- SendServiceWorkerObjectDestroyed(thread_safe_sender_,
+ SendServiceWorkerObjectDestroyed(thread_safe_sender_.get(),
attributes.waiting.handle_id);
- SendServiceWorkerObjectDestroyed(thread_safe_sender_,
+ SendServiceWorkerObjectDestroyed(thread_safe_sender_.get(),
attributes.active.handle_id);
- SendRegistrationObjectDestroyed(thread_safe_sender_, registration_handle_id);
+ SendRegistrationObjectDestroyed(thread_safe_sender_.get(),
+ registration_handle_id);
}
void ServiceWorkerMessageFilter::OnStaleSetControllerServiceWorker(
int thread_id,
int provider_id,
const ServiceWorkerObjectInfo& info) {
- SendServiceWorkerObjectDestroyed(thread_safe_sender_, info.handle_id);
+ SendServiceWorkerObjectDestroyed(thread_safe_sender_.get(), info.handle_id);
}
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698