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 "chromeos/dbus/blocking_method_caller.h" | 5 #include "chromeos/dbus/blocking_method_caller.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/location.h" |
8 #include "base/threading/thread_restrictions.h" | 9 #include "base/threading/thread_restrictions.h" |
9 #include "dbus/bus.h" | 10 #include "dbus/bus.h" |
10 #include "dbus/object_proxy.h" | 11 #include "dbus/object_proxy.h" |
11 | 12 |
12 namespace chromeos { | 13 namespace chromeos { |
13 | 14 |
14 namespace { | 15 namespace { |
15 | 16 |
16 // This function is a part of CallMethodAndBlock implementation. | 17 // This function is a part of CallMethodAndBlock implementation. |
17 void CallMethodAndBlockInternal( | 18 void CallMethodAndBlockInternal( |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 base::Owned(signaler), | 55 base::Owned(signaler), |
55 base::Unretained(proxy_), | 56 base::Unretained(proxy_), |
56 method_call)); | 57 method_call)); |
57 // http://crbug.com/125360 | 58 // http://crbug.com/125360 |
58 base::ThreadRestrictions::ScopedAllowWait allow_wait; | 59 base::ThreadRestrictions::ScopedAllowWait allow_wait; |
59 on_blocking_method_call_.Wait(); | 60 on_blocking_method_call_.Wait(); |
60 return response.Pass(); | 61 return response.Pass(); |
61 } | 62 } |
62 | 63 |
63 } // namespace chromeos | 64 } // namespace chromeos |
OLD | NEW |