OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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 <string> | 5 #include <string> |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
9 #include "base/callback.h" | 9 #include "base/callback.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
11 #include "base/location.h" | 11 #include "base/location.h" |
12 #include "base/single_thread_task_runner.h" | 12 #include "base/single_thread_task_runner.h" |
13 #include "base/thread_task_runner_handle.h" | 13 #include "base/threading/thread_task_runner_handle.h" |
14 #include "base/values.h" | 14 #include "base/values.h" |
15 #include "chromeos/chromeos_switches.h" | 15 #include "chromeos/chromeos_switches.h" |
16 #include "chromeos/dbus/fake_sms_client.h" | 16 #include "chromeos/dbus/fake_sms_client.h" |
17 #include "dbus/object_path.h" | 17 #include "dbus/object_path.h" |
18 | 18 |
19 namespace chromeos { | 19 namespace chromeos { |
20 | 20 |
21 FakeSMSClient::FakeSMSClient() : weak_ptr_factory_(this) {} | 21 FakeSMSClient::FakeSMSClient() : weak_ptr_factory_(this) {} |
22 | 22 |
23 FakeSMSClient::~FakeSMSClient() {} | 23 FakeSMSClient::~FakeSMSClient() {} |
(...skipping 21 matching lines...) Expand all Loading... |
45 base::Bind(&FakeSMSClient::OnGetAll, weak_ptr_factory_.GetWeakPtr(), | 45 base::Bind(&FakeSMSClient::OnGetAll, weak_ptr_factory_.GetWeakPtr(), |
46 base::Owned(sms), callback)); | 46 base::Owned(sms), callback)); |
47 } | 47 } |
48 | 48 |
49 void FakeSMSClient::OnGetAll(base::DictionaryValue* sms, | 49 void FakeSMSClient::OnGetAll(base::DictionaryValue* sms, |
50 const GetAllCallback& callback) { | 50 const GetAllCallback& callback) { |
51 callback.Run(*sms); | 51 callback.Run(*sms); |
52 } | 52 } |
53 | 53 |
54 } // namespace chromeos | 54 } // namespace chromeos |
OLD | NEW |