| Index: content/browser/background_fetch/background_fetch_event_dispatcher.cc
|
| diff --git a/content/browser/background_fetch/background_fetch_event_dispatcher.cc b/content/browser/background_fetch/background_fetch_event_dispatcher.cc
|
| index 291a19dc45ddaa35f17a40eab3c238d189c0eb9c..1de7fef1b8f9fe430a27f67b3628f2496bf20af3 100644
|
| --- a/content/browser/background_fetch/background_fetch_event_dispatcher.cc
|
| +++ b/content/browser/background_fetch/background_fetch_event_dispatcher.cc
|
| @@ -65,9 +65,14 @@ void RecordFailureResult(ServiceWorkerMetrics::EventType event,
|
|
|
| BackgroundFetchEventDispatcher::BackgroundFetchEventDispatcher(
|
| const scoped_refptr<ServiceWorkerContextWrapper>& service_worker_context)
|
| - : service_worker_context_(service_worker_context) {}
|
| + : service_worker_context_(service_worker_context) {
|
| + // Constructed on the UI thread, then lives on the IO thread.
|
| + DCHECK_CURRENTLY_ON(BrowserThread::UI);
|
| +}
|
|
|
| -BackgroundFetchEventDispatcher::~BackgroundFetchEventDispatcher() = default;
|
| +BackgroundFetchEventDispatcher::~BackgroundFetchEventDispatcher() {
|
| + DCHECK_CURRENTLY_ON(BrowserThread::IO);
|
| +}
|
|
|
| void BackgroundFetchEventDispatcher::DispatchBackgroundFetchAbortEvent(
|
| const BackgroundFetchRegistrationId& registration_id,
|
|
|