| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chromeos/dbus/shill_manager_client_stub.h" | 5 #include "chromeos/dbus/shill_manager_client_stub.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
| 10 #include "base/values.h" | 10 #include "base/values.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 #include "dbus/values_util.h" | 21 #include "dbus/values_util.h" |
| 22 #include "third_party/cros_system_api/dbus/service_constants.h" | 22 #include "third_party/cros_system_api/dbus/service_constants.h" |
| 23 | 23 |
| 24 namespace chromeos { | 24 namespace chromeos { |
| 25 | 25 |
| 26 namespace { | 26 namespace { |
| 27 | 27 |
| 28 // Used to compare values for finding entries to erase in a ListValue. | 28 // Used to compare values for finding entries to erase in a ListValue. |
| 29 // (ListValue only implements a const_iterator version of Find). | 29 // (ListValue only implements a const_iterator version of Find). |
| 30 struct ValueEquals { | 30 struct ValueEquals { |
| 31 explicit ValueEquals(const Value* first) : first_(first) {} | 31 explicit ValueEquals(const base::Value* first) : first_(first) {} |
| 32 bool operator()(const Value* second) const { | 32 bool operator()(const base::Value* second) const { |
| 33 return first_->Equals(second); | 33 return first_->Equals(second); |
| 34 } | 34 } |
| 35 const Value* first_; | 35 const base::Value* first_; |
| 36 }; | 36 }; |
| 37 | 37 |
| 38 } // namespace | 38 } // namespace |
| 39 | 39 |
| 40 ShillManagerClientStub::ShillManagerClientStub() | 40 ShillManagerClientStub::ShillManagerClientStub() |
| 41 : weak_ptr_factory_(this) { | 41 : weak_ptr_factory_(this) { |
| 42 SetDefaultProperties(); | 42 SetDefaultProperties(); |
| 43 } | 43 } |
| 44 | 44 |
| 45 ShillManagerClientStub::~ShillManagerClientStub() {} | 45 ShillManagerClientStub::~ShillManagerClientStub() {} |
| (...skipping 560 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 606 base::FundamentalValue(false)); | 606 base::FundamentalValue(false)); |
| 607 } | 607 } |
| 608 CallNotifyObserversPropertyChanged(flimflam::kServicesProperty, 0); | 608 CallNotifyObserversPropertyChanged(flimflam::kServicesProperty, 0); |
| 609 CallNotifyObserversPropertyChanged(flimflam::kServiceWatchListProperty, | 609 CallNotifyObserversPropertyChanged(flimflam::kServiceWatchListProperty, |
| 610 0); | 610 0); |
| 611 if (!callback.is_null()) | 611 if (!callback.is_null()) |
| 612 base::MessageLoop::current()->PostTask(FROM_HERE, callback); | 612 base::MessageLoop::current()->PostTask(FROM_HERE, callback); |
| 613 } | 613 } |
| 614 | 614 |
| 615 } // namespace chromeos | 615 } // namespace chromeos |
| OLD | NEW |