OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "chrome/browser/chromeos/dbus/flimflam_client_helper.h" | 5 #include "chromeos/dbus/flimflam_client_helper.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/values.h" | 8 #include "base/values.h" |
9 #include "dbus/message.h" | 9 #include "dbus/message.h" |
10 #include "dbus/object_proxy.h" | 10 #include "dbus/object_proxy.h" |
11 #include "dbus/values_util.h" | 11 #include "dbus/values_util.h" |
12 #include "third_party/cros_system_api/dbus/service_constants.h" | 12 #include "third_party/cros_system_api/dbus/service_constants.h" |
13 | 13 |
14 namespace chromeos { | 14 namespace chromeos { |
15 | 15 |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 base::DictionaryValue* result = NULL; | 102 base::DictionaryValue* result = NULL; |
103 if (!value.get() || !value->GetAsDictionary(&result)) { | 103 if (!value.get() || !value->GetAsDictionary(&result)) { |
104 base::DictionaryValue result; | 104 base::DictionaryValue result; |
105 callback.Run(DBUS_METHOD_CALL_FAILURE, result); | 105 callback.Run(DBUS_METHOD_CALL_FAILURE, result); |
106 return; | 106 return; |
107 } | 107 } |
108 callback.Run(DBUS_METHOD_CALL_SUCCESS, *result); | 108 callback.Run(DBUS_METHOD_CALL_SUCCESS, *result); |
109 } | 109 } |
110 | 110 |
111 } // namespace chromeos | 111 } // namespace chromeos |
OLD | NEW |