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 127b0c0a09387da4b8e718713669d4b7a551dbec..f95fd689059ebe6ea47d814d2b40ac97fe771e3c 100644 |
--- a/content/browser/devtools/protocol/service_worker_handler.cc |
+++ b/content/browser/devtools/protocol/service_worker_handler.cc |
@@ -244,26 +244,6 @@ Response CreateInvalidVersionIdErrorResponse() { |
return Response::InternalError("Invalid version ID"); |
} |
-const std::string GetDevToolsAgentHostTypeString( |
- content::DevToolsAgentHost::Type type) { |
- switch (type) { |
- case DevToolsAgentHost::TYPE_WEB_CONTENTS: |
- return "web_contents"; |
- case DevToolsAgentHost::TYPE_FRAME: |
- return "frame"; |
- case DevToolsAgentHost::TYPE_SHARED_WORKER: |
- return "shared_worker"; |
- case DevToolsAgentHost::TYPE_SERVICE_WORKER: |
- return "service_worker"; |
- case DevToolsAgentHost::TYPE_EXTERNAL: |
- return "external"; |
- case DevToolsAgentHost::TYPE_BROWSER: |
- return "browser"; |
- } |
- NOTREACHED() << type; |
- return std::string(); |
-} |
- |
void DidFindRegistrationForDispatchSyncEventOnIO( |
scoped_refptr<BackgroundSyncContext> sync_context, |
const std::string& tag, |
@@ -546,7 +526,7 @@ Response ServiceWorkerHandler::GetTargetInfo( |
*target_info = |
TargetInfo::Create() |
->set_id(agent_host->GetId()) |
- ->set_type(GetDevToolsAgentHostTypeString(agent_host->GetType())) |
+ ->set_type(agent_host->GetType()) |
->set_title(agent_host->GetTitle()) |
->set_url(agent_host->GetURL().spec()); |
return Response::OK(); |