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

Issue 339013: cros: doing dbus stuff on the file thread==disaster. (Closed)

Created:
11 years, 1 month ago by Chris Masone
Modified:
9 years, 7 months ago
Reviewers:
Elliot Glaysher
CC:
chromium-reviews_googlegroups.com, ben+cc_chromium.org
Visibility:
Public.

Description

cros: doing dbus stuff on the file thread==disaster. libdbus-glib uses the glib main loop internally. We were making calls on a background thread that wound up telling libdbus-glib to get a connection to the system bus on said background thread. This led to a background thread trying to use the same glib main loop as Chrome's UI thread, and concurrency issues led to crashing. Sadly, there can be only one main loop per process, as I understand it. This code takes away the attempts to use the background thread. As our interaction with dbus is semantically asynchronous, this seems ok to me. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=30135

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -28 lines) Patch
M chrome/browser/chromeos/cros_network_library.h View 5 chunks +7 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/cros_network_library.cc View 3 chunks +13 lines, -15 lines 0 comments Download
M chrome/browser/chromeos/cros_power_library.h View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/chromeos/cros_power_library.cc View 2 chunks +2 lines, -7 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
Chris Masone
11 years, 1 month ago (2009-10-27 00:00:15 UTC) #1
Elliot Glaysher
11 years, 1 month ago (2009-10-27 00:07:53 UTC) #2
LGTM

Powered by Google App Engine
This is Rietveld 408576698