summaryrefslogtreecommitdiffstats
path: root/dbus/bus.h
diff options
context:
space:
mode:
authorsatorux@chromium.org <satorux@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-08 22:28:42 +0000
committersatorux@chromium.org <satorux@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-08 22:28:42 +0000
commitb8907a48776fa0141f0addfb62d54a69d1ba306c (patch)
tree2840c50d775f50563b56075023f5198b0bade21c /dbus/bus.h
parent791fecafd19065160d0d546e497c8af1d0e1692a (diff)
downloadchromium_src-b8907a48776fa0141f0addfb62d54a69d1ba306c.zip
chromium_src-b8907a48776fa0141f0addfb62d54a69d1ba306c.tar.gz
chromium_src-b8907a48776fa0141f0addfb62d54a69d1ba306c.tar.bz2
Use MessageLoopProxy for the origin message loop as well.
Inspired by mdm's patch to use the message loop proxy for the D-Bus thread. Using MessageLoopProxy is a great way to make shutdown safer. We should use this for the origin message loop as well. BUG=chromium:90036 TEST=dbus_unittests Review URL: http://codereview.chromium.org/7847013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@100279 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'dbus/bus.h')
-rw-r--r--dbus/bus.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/dbus/bus.h b/dbus/bus.h
index 9eba043..b64ae8f 100644
--- a/dbus/bus.h
+++ b/dbus/bus.h
@@ -436,7 +436,7 @@ class Bus : public base::RefCountedThreadSafe<Bus> {
base::WaitableEvent on_shutdown_;
DBusConnection* connection_;
- MessageLoop* origin_loop_;
+ scoped_refptr<base::MessageLoopProxy> origin_message_loop_proxy_;
base::PlatformThreadId origin_thread_id_;
std::set<std::string> owned_service_names_;