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

Unified Diff: chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_api_advertisement.cc

Issue 2370373002: Move chrome.bluetoothLowEnergy out of //chrome. (Closed)
Patch Set: build fix Created 4 years, 3 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: chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_api_advertisement.cc
diff --git a/chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_api_advertisement.cc b/chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_api_advertisement.cc
deleted file mode 100644
index 9eb998ec26b4bf2dba17b2756b7c7ab79700a414..0000000000000000000000000000000000000000
--- a/chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_api_advertisement.cc
+++ /dev/null
@@ -1,35 +0,0 @@
-// Copyright 2015 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 "chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_api_advertisement.h"
-
-#include "base/lazy_instance.h"
-#include "device/bluetooth/bluetooth_advertisement.h"
-#include "net/base/io_buffer.h"
-
-namespace extensions {
-
-// static
-static base::LazyInstance<BrowserContextKeyedAPIFactory<
- ApiResourceManager<BluetoothApiAdvertisement>>> g_server_factory =
- LAZY_INSTANCE_INITIALIZER;
-
-// static
-template <>
-BrowserContextKeyedAPIFactory<ApiResourceManager<BluetoothApiAdvertisement>>*
-ApiResourceManager<BluetoothApiAdvertisement>::GetFactoryInstance() {
- return g_server_factory.Pointer();
-}
-
-BluetoothApiAdvertisement::BluetoothApiAdvertisement(
- const std::string& owner_extension_id,
- scoped_refptr<device::BluetoothAdvertisement> advertisement)
- : ApiResource(owner_extension_id), advertisement_(advertisement) {
- DCHECK_CURRENTLY_ON(kThreadId);
-}
-
-BluetoothApiAdvertisement::~BluetoothApiAdvertisement() {
-}
-
-} // namespace extensions

Powered by Google App Engine
This is Rietveld 408576698