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

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

Issue 420663003: Extensions: Move bluetooth APIs to extensions/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix android, gn Created 6 years, 4 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_low_energy_notify_session.cc
diff --git a/chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_notify_session.cc b/chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_notify_session.cc
deleted file mode 100644
index 281c7cc9576143e1cf81359b94ce4a5dfa63ac84..0000000000000000000000000000000000000000
--- a/chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_notify_session.cc
+++ /dev/null
@@ -1,41 +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 "chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_notify_session.h"
-
-namespace extensions {
-
-static base::LazyInstance<BrowserContextKeyedAPIFactory<
- ApiResourceManager<BluetoothLowEnergyNotifySession> > > g_factory =
- LAZY_INSTANCE_INITIALIZER;
-
-template <>
-BrowserContextKeyedAPIFactory<
- ApiResourceManager<BluetoothLowEnergyNotifySession> >*
-ApiResourceManager<BluetoothLowEnergyNotifySession>::GetFactoryInstance() {
- return g_factory.Pointer();
-}
-
-BluetoothLowEnergyNotifySession::BluetoothLowEnergyNotifySession(
- bool persistent,
- const std::string& owner_extension_id,
- scoped_ptr<device::BluetoothGattNotifySession> session)
- : ApiResource(owner_extension_id),
- persistent_(persistent),
- session_(session.release()) {
-}
-
-BluetoothLowEnergyNotifySession::~BluetoothLowEnergyNotifySession() {
-}
-
-device::BluetoothGattNotifySession*
-BluetoothLowEnergyNotifySession::GetSession() const {
- return session_.get();
-}
-
-bool BluetoothLowEnergyNotifySession::IsPersistent() const {
- return persistent_;
-}
-
-} // namespace extensions

Powered by Google App Engine
This is Rietveld 408576698