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

Unified Diff: chrome/browser/chromeos/dbus/bluetooth_property.cc

Issue 9838085: Move files inside chrome/browser/chromeos/dbus to chromeos/dbus (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase Created 8 years, 8 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
« no previous file with comments | « chrome/browser/chromeos/dbus/bluetooth_property.h ('k') | chrome/browser/chromeos/dbus/cashew_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/dbus/bluetooth_property.cc
diff --git a/chrome/browser/chromeos/dbus/bluetooth_property.cc b/chrome/browser/chromeos/dbus/bluetooth_property.cc
deleted file mode 100644
index 5041fd8297af7e44f3bc98d8004ea6f5c1b7b8d0..0000000000000000000000000000000000000000
--- a/chrome/browser/chromeos/dbus/bluetooth_property.cc
+++ /dev/null
@@ -1,43 +0,0 @@
-// Copyright (c) 2012 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/chromeos/dbus/bluetooth_property.h"
-
-#include "base/bind.h"
-#include "dbus/message.h"
-#include "dbus/object_proxy.h"
-#include "third_party/cros_system_api/dbus/service_constants.h"
-
-namespace chromeos {
-
-void BluetoothPropertySet::ConnectSignals() {
- dbus::ObjectProxy* object_proxy = this->object_proxy();
- DCHECK(object_proxy);
- object_proxy->ConnectToSignal(
- interface(),
- bluetooth_common::kPropertyChangedSignal,
- base::Bind(&dbus::PropertySet::ChangedReceived, GetWeakPtr()),
- base::Bind(&dbus::PropertySet::ChangedConnected, GetWeakPtr()));
-}
-
-void BluetoothPropertySet::ChangedReceived(dbus::Signal* signal) {
- DCHECK(signal);
-
- dbus::MessageReader reader(signal);
- UpdatePropertyFromReader(&reader);
-}
-
-void BluetoothPropertySet::GetAll() {
- dbus::MethodCall method_call(interface(),
- bluetooth_common::kGetProperties);
-
- dbus::ObjectProxy* object_proxy = this->object_proxy();
- DCHECK(object_proxy);
- object_proxy->CallMethod(&method_call,
- dbus::ObjectProxy::TIMEOUT_USE_DEFAULT,
- base::Bind(&dbus::PropertySet::OnGetAll,
- GetWeakPtr()));
-}
-
-}
« no previous file with comments | « chrome/browser/chromeos/dbus/bluetooth_property.h ('k') | chrome/browser/chromeos/dbus/cashew_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698