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

Issue 465097: Two changes to the DBus C++ library. (Closed)

Created:
11 years ago by Yusuke Sato
Modified:
9 years, 7 months ago
CC:
chromium-os-reviews_googlegroups.com, satorux1
Visibility:
Public.

Description

Two changes to the DBus C++ library. - Added GetPrivateBusConnection() which is necessary to implement language switcher integrated with Chrome (http://bit.ly/8LUDJE). We have to make a DBus connection for the language switcher private, since im_ibus.so (GTK_IM_MODULE for Chrome) establishes a DBus connection to the same address and the IM module does not expect that the connection is shared with other code in the same process. If we don't make the connection private, im_ibus.so dies with g_assert. - Added another constructor to the Proxy class so that the language switcher can connect to IME candidate window using ::::dbus_g_proxy_new_for_name_owner() API. This change is for http://codereview.chromium.org/460107 BUG=494

Patch Set 1 #

Total comments: 12

Patch Set 2 : addressed issues Sean pointed out #

Patch Set 3 : Fixed typo in GetGProxy(), sorry. #

Patch Set 4 : fixed memory leak in GetGProxy() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+88 lines, -4 lines) Patch
M src/common/chromeos/dbus/dbus.h View 1 5 chunks +26 lines, -4 lines 0 comments Download
M src/common/chromeos/dbus/dbus.cc View 1 2 3 2 chunks +62 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Yusuke Sato
Can you please review this? This small change is necessary to implement the IME/language switcher ...
11 years ago (2009-12-08 07:03:49 UTC) #1
Yusuke Sato
11 years ago (2009-12-08 07:17:32 UTC) #2
Sean Parent
http://codereview.chromium.org/465097/diff/1/2 File src/common/chromeos/dbus/dbus.cc (right): http://codereview.chromium.org/465097/diff/1/2#newcode13 src/common/chromeos/dbus/dbus.cc:13: bool is_g_bus_get_called = false; This looks like a thread ...
11 years ago (2009-12-10 17:38:20 UTC) #3
Yusuke Sato
Thanks for the review! Fixed all. http://codereview.chromium.org/465097/diff/1/2 File src/common/chromeos/dbus/dbus.cc (right): http://codereview.chromium.org/465097/diff/1/2#newcode13 src/common/chromeos/dbus/dbus.cc:13: bool is_g_bus_get_called = ...
11 years ago (2009-12-11 11:57:31 UTC) #4
Sean Parent
http://codereview.chromium.org/465097/diff/1/3 File src/common/chromeos/dbus/dbus.h (right): http://codereview.chromium.org/465097/diff/1/3#newcode147 src/common/chromeos/dbus/dbus.h:147: &error); I missed this on the first pass, if ...
11 years ago (2009-12-11 16:32:39 UTC) #5
Yusuke Sato
http://codereview.chromium.org/465097/diff/1/3 File src/common/chromeos/dbus/dbus.h (right): http://codereview.chromium.org/465097/diff/1/3#newcode147 src/common/chromeos/dbus/dbus.h:147: &error); Thanks, fixed. Please take another look at the ...
11 years ago (2009-12-14 01:35:32 UTC) #6
Sean Parent
11 years ago (2009-12-14 21:03:27 UTC) #7
LGTM

Powered by Google App Engine
This is Rietveld 408576698