| Index: content/browser/devtools/protocol/service_worker_handler.cc
|
| diff --git a/content/browser/devtools/protocol/service_worker_handler.cc b/content/browser/devtools/protocol/service_worker_handler.cc
|
| index 019977215751f7270607e721f16c466f4c03afcd..6f426f4037da17c5f59d117dd3debf1e5d4d8d0a 100644
|
| --- a/content/browser/devtools/protocol/service_worker_handler.cc
|
| +++ b/content/browser/devtools/protocol/service_worker_handler.cc
|
| @@ -13,7 +13,6 @@
|
| #include "content/browser/frame_host/frame_tree.h"
|
| #include "content/browser/frame_host/frame_tree_node.h"
|
| #include "content/browser/frame_host/render_frame_host_impl.h"
|
| -#include "content/browser/service_worker/service_worker_context_core.h"
|
| #include "content/browser/service_worker/service_worker_context_watcher.h"
|
| #include "content/browser/service_worker/service_worker_context_wrapper.h"
|
| #include "content/browser/service_worker/service_worker_version.h"
|
| @@ -151,11 +150,8 @@ bool CollectURLs(std::set<GURL>* urls, FrameTreeNode* tree_node) {
|
|
|
| void StopServiceWorkerOnIO(scoped_refptr<ServiceWorkerContextWrapper> context,
|
| int64 version_id) {
|
| - ServiceWorkerContextCore* context_core = context->context();
|
| - if (!context_core)
|
| - return;
|
| if (content::ServiceWorkerVersion* version =
|
| - context_core->GetLiveVersion(version_id)) {
|
| + context->GetLiveVersion(version_id)) {
|
| version->StopWorker(base::Bind(&StatusNoOp));
|
| }
|
| }
|
| @@ -164,11 +160,8 @@ void GetDevToolsRouteInfoOnIO(
|
| scoped_refptr<ServiceWorkerContextWrapper> context,
|
| int64 version_id,
|
| const base::Callback<void(int, int)>& callback) {
|
| - ServiceWorkerContextCore* context_core = context->context();
|
| - if (!context_core)
|
| - return;
|
| if (content::ServiceWorkerVersion* version =
|
| - context_core->GetLiveVersion(version_id)) {
|
| + context->GetLiveVersion(version_id)) {
|
| BrowserThread::PostTask(
|
| BrowserThread::UI, FROM_HERE,
|
| base::Bind(
|
|
|