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

Unified Diff: extensions/browser/api/copresence_endpoints/copresence_endpoint_resource.cc

Issue 895783002: Remove the Copresence Endpoints API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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: extensions/browser/api/copresence_endpoints/copresence_endpoint_resource.cc
diff --git a/extensions/browser/api/copresence_endpoints/copresence_endpoint_resource.cc b/extensions/browser/api/copresence_endpoints/copresence_endpoint_resource.cc
deleted file mode 100644
index 45d4542e2f898d3de07b927779e581dfab4a8e09..0000000000000000000000000000000000000000
--- a/extensions/browser/api/copresence_endpoints/copresence_endpoint_resource.cc
+++ /dev/null
@@ -1,43 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "extensions/browser/api/copresence_endpoints/copresence_endpoint_resource.h"
-
-#include "base/lazy_instance.h"
-#include "components/copresence_endpoints/public/copresence_endpoint.h"
-#include "content/public/browser/browser_context.h"
-
-using copresence_endpoints::CopresenceEndpoint;
-
-namespace extensions {
-
-// CopresenceEndpointResource.
-
-// static
-static base::LazyInstance<BrowserContextKeyedAPIFactory<
- ApiResourceManager<CopresenceEndpointResource>>> g_endpoint_factory =
- LAZY_INSTANCE_INITIALIZER;
-
-// static
-template <>
-BrowserContextKeyedAPIFactory<ApiResourceManager<CopresenceEndpointResource>>*
-ApiResourceManager<CopresenceEndpointResource>::GetFactoryInstance() {
- return g_endpoint_factory.Pointer();
-}
-
-CopresenceEndpointResource::CopresenceEndpointResource(
- const std::string& owner_extension_id,
- scoped_ptr<copresence_endpoints::CopresenceEndpoint> endpoint)
- : ApiResource(owner_extension_id), endpoint_(endpoint.Pass()) {
-}
-
-CopresenceEndpointResource::~CopresenceEndpointResource() {
-}
-
-copresence_endpoints::CopresenceEndpoint*
-CopresenceEndpointResource::endpoint() {
- return endpoint_.get();
-}
-
-} // namespace extensions

Powered by Google App Engine
This is Rietveld 408576698