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

Issue 6648002: Make DBUS an optional dependency so Chromium can be built without it....

Created:
9 years, 9 months ago by mounir.lamouri
Modified:
9 years, 9 months ago
CC:
chromium-reviews, jam, brettw-cc_chromium.org
Visibility:
Public.

Description

Make DBUS an optional dependency so Chromium can be built without it. BUG=63981 TEST=Build with -Duse_dbus=0 without dbus installed and with -Duse_dbus=1. The former build should work and the later should fail.

Patch Set 1 #

Total comments: 1

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+50 lines, -13 lines) Patch
AUTHORS View 1 1 chunk +1 line, -0 lines 0 comments Download
M build/common.gypi View 1 chunk +7 lines, -0 lines 0 comments Download
M build/linux/system.gyp View 1 chunk +20 lines, -13 lines 0 comments Download
M chrome/browser/browser_main.cc View 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_impl.cc View 3 chunks +4 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 chunk +6 lines, -0 lines 0 comments Download
M content/browser/geolocation/wifi_data_provider_linux.cc View 1 3 chunks +4 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
mounir.lamouri
9 years, 9 months ago (2011-03-08 21:06:39 UTC) #1
Paweł Hajdan Jr.
LGTM with a comment, thank you. Have you signed the CLA/CCLA? Please see http://www.chromium.org/developers/contributing-code#TOC-Instructions-for-Reviewer:-Checking Also, ...
9 years, 9 months ago (2011-03-08 21:13:13 UTC) #2
Evan Martin
I don't like how this patch makes features silently fail. I think it will increase ...
9 years, 9 months ago (2011-03-08 21:33:31 UTC) #3
Evan Martin
I think the worse one is that if you disable dbus and use a KDE ...
9 years, 9 months ago (2011-03-08 21:34:02 UTC) #4
mounir.lamouri
On 2011/03/08 21:34:02, Evan Martin wrote: > I think the worse one is that if ...
9 years, 9 months ago (2011-03-08 22:22:14 UTC) #5
Evan Martin
On 2011/03/08 22:22:14, mounir.lamouri wrote: > A more complex setup that doesn't involve silently disabling ...
9 years, 9 months ago (2011-03-08 22:32:49 UTC) #6
mounir.lamouri
Updated patch with my name added to AUTHORS and the other change requested by Paweł. ...
9 years, 9 months ago (2011-03-09 15:29:16 UTC) #7
joth
9 years, 9 months ago (2011-03-16 07:10:27 UTC) #8
On 8 March 2011 22:32, <evan@chromium.org> wrote:

> On 2011/03/08 22:22:14, mounir.lamouri wrote:
>
>> Though, for geolocation, if I have dbus installed but no dbus daemon
>> running,
>
> geolocation wouldn't work too, right?
>>
>
> This is a good point.  (It relies on NetworkManager.)
> Maybe I shouldn't worry about these configurations too much, and we're ok
> with
> stuff being broken.  I retract my objection.
>
>
> Without DBUS / Network manager, geolocation will (silently) fallback to
using IP address for a coarse location. The geolocation API doesn't provide
any real means to bubble up additional diagnostic info to the JS application
as to why it is receiving a poor location fix, so to date I'd been relying
on providing some additional debug logging to give the curious user
something to go on.
Would there be a simple place to hook in a "NOTIMPLEMENTED: no wifi location
for non-DBUS platform" message?


>
http://codereview.chromium.org/6648002/diff/1/content/browser/geolocation/wif...

rather than alter this .cc, it would be better to edit
http://src.chromium.org/viewvc/chrome/trunk/src/content/browser/geolocation/e...
to have WifiDataProvider::DefaultFactoryFunction
return the "Empty" data provider implementation on "linux" platforms without
dbus. (The empty provider would then be the place to do any appropriate
NOTIMPLEMENTED diagnostic)


This has a knock on implication that the
wifi_data_provider_linux.cc<http://codereview.chromium.org/6648002/diff/1/content/browser/geolocation/wifi_data_provider_linux.cc#newcode400>
be
renamed to
wifi_data_provider_dbus.cc<http://codereview.chromium.org/6648002/diff/1/content/browser/geolocation/wifi_data_provider_linux.cc#newcode400>
(I
presume?) and the .gypi file instructed to only include this file if the
use_dbus flag is set.

Bit more work, but I think this will be cleaner than have multiple layers of
dummying out of the functionality.

Cheers!

Powered by Google App Engine
This is Rietveld 408576698