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

Side by Side Diff: chromeos/dbus/blocking_method_caller.cc

Issue 12255043: DBus: Use TaskRunners instead of MessageLoopProxies. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: rebase Created 7 years, 10 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chromeos/dbus/dbus_thread_manager.cc » ('j') | dbus/mock_bus.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « no previous file | chromeos/dbus/dbus_thread_manager.cc » ('j') | dbus/mock_bus.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698