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

Issue 223143006: Make necessary changes for chromecast build as chromecast has it own implementation of NetworkChang… (Closed)

Created:
6 years, 8 months ago by lcwu1
Modified:
6 years, 6 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, damienv1, kollas, rjkroege
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Make necessary changes for chromecast build as chromecast has it own implementation of NetworkChangeNotifier and doesn't support proxy. BUG=336640

Patch Set 1 #

Patch Set 2 : Modified based on review comments on patch set 1 #

Patch Set 3 : Fix a check failure when we don't yet have a NetworkChangeNotifierFactory for chromecast build #

Total comments: 10

Patch Set 4 : Remove the use of CHROMECAST_BUILD macro. Use feature-based gyp variables and C macros to specify c… #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -4 lines) Patch
M net/base/network_change_notifier.cc View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download
M net/net.gyp View 1 2 3 4 chunks +16 lines, -1 line 0 comments Download
M net/proxy/proxy_service.cc View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 14 (0 generated)
lcwu1
6 years, 8 months ago (2014-04-03 09:33:45 UTC) #1
Ryan Sleevi
I would rather see positive handling of the CHROMECAST_BUILD, instead of falling into the default ...
6 years, 8 months ago (2014-04-07 16:42:03 UTC) #2
lcwu1
On 2014/04/07 16:42:03, Ryan Sleevi wrote: > I would rather see positive handling of the ...
6 years, 8 months ago (2014-04-11 01:55:46 UTC) #3
darin (slow to review)
https://codereview.chromium.org/223143006/diff/40001/net/base/network_change_notifier.cc File net/base/network_change_notifier.cc (right): https://codereview.chromium.org/223143006/diff/40001/net/base/network_change_notifier.cc#newcode497 net/base/network_change_notifier.cc:497: #elif defined(CHROMECAST_BUILD) The comment that Chromecast MUST use its ...
6 years, 8 months ago (2014-04-14 04:48:00 UTC) #4
darin (slow to review)
https://codereview.chromium.org/223143006/diff/40001/net/base/network_change_notifier.cc File net/base/network_change_notifier.cc (right): https://codereview.chromium.org/223143006/diff/40001/net/base/network_change_notifier.cc#newcode19 net/base/network_change_notifier.cc:19: #elif defined(OS_LINUX) && !defined(OS_CHROMEOS) && !defined(CHROMECAST_BUILD) is it actually ...
6 years, 8 months ago (2014-04-14 05:03:29 UTC) #5
Ryan Sleevi
https://codereview.chromium.org/223143006/diff/40001/net/base/network_change_notifier.cc File net/base/network_change_notifier.cc (right): https://codereview.chromium.org/223143006/diff/40001/net/base/network_change_notifier.cc#newcode489 net/base/network_change_notifier.cc:489: // ChromeOS, Android, and Chromecast builds MUST use their ...
6 years, 8 months ago (2014-04-14 21:28:42 UTC) #6
lcwu1
https://codereview.chromium.org/223143006/diff/40001/net/base/network_change_notifier.cc File net/base/network_change_notifier.cc (right): https://codereview.chromium.org/223143006/diff/40001/net/base/network_change_notifier.cc#newcode19 net/base/network_change_notifier.cc:19: #elif defined(OS_LINUX) && !defined(OS_CHROMEOS) && !defined(CHROMECAST_BUILD) On 2014/04/14 05:03:29, ...
6 years, 8 months ago (2014-04-15 06:24:41 UTC) #7
lcwu1
In patch set #4, we removed the references to CHROMECAST_BUILD macro and defined a couple ...
6 years, 6 months ago (2014-06-24 22:39:12 UTC) #8
Ryan Sleevi
On 2014/06/24 22:39:12, lcwu1 wrote: > In patch set #4, we removed the references to ...
6 years, 6 months ago (2014-06-24 23:13:31 UTC) #9
Ryan Sleevi
In motivations for this CL, it's unclear why you can't use g_network_change_notifier_factory / NetworkChangeNotifier::SetFactory() to ...
6 years, 6 months ago (2014-06-24 23:16:08 UTC) #10
lcwu1
On 2014/06/24 23:16:08, Ryan Sleevi wrote: > In motivations for this CL, it's unclear why ...
6 years, 6 months ago (2014-06-24 23:42:49 UTC) #11
Ryan Sleevi
On 2014/06/24 23:42:49, lcwu1 wrote: > On 2014/06/24 23:16:08, Ryan Sleevi wrote: > > In ...
6 years, 6 months ago (2014-06-24 23:46:29 UTC) #12
lcwu1
On 2014/06/24 23:13:31, Ryan Sleevi wrote: > On 2014/06/24 22:39:12, lcwu1 wrote: > > In ...
6 years, 6 months ago (2014-06-24 23:57:44 UTC) #13
lcwu1
6 years, 6 months ago (2014-06-25 01:36:46 UTC) #14
On 2014/06/24 23:57:44, lcwu1 wrote:
> On 2014/06/24 23:13:31, Ryan Sleevi wrote:
> > On 2014/06/24 22:39:12, lcwu1 wrote:
> > > In patch set #4, we removed the references to CHROMECAST_BUILD macro and
> > defined
> > > a couple of feature-based macros and gyp variables to hook up chromecast's
> > > network change notifier factory and its use of direct proxy config
service.
> > > 
> > > Please take another look. Thanks,
> > 
> > This doesn't really seem to get to the suggestion provided in comment #5.
> > 
> > In general, we should be trying to use fewer, not more, GYP variables.
> 
> Regarding the gyp variable and macro introduced for using direct proxy config
> service, since we don't support proxy config, and we cannot use Linux's
> implementation (as we don't have glib on our platform), it makes sense for us
to
> simply use ProxyConfigServiceDirect. Based on our early upstream discussion
with
> Darin and a couple of other Chromium folks, creating a new platform #ifdef is
> strongly discouraged, but it's OK to create feature-based gyp variable and/or
> #ifdefs (e.g. Take use_direct_config_service for example, maybe some
> Windows-based platforms might decide to use ProxyConfigServiceDirect instead
of
> ProxyConfigServiceWin and can simply set use_direct_config_service=1 on their
> platforms).
> 
> Any other suggestions/ideas on how we can solve this problem differently are
> welcomed. Thanks.


It looks like the use of glib APIs are all guarded by either GCONF or GIO, both
of which would not be defined if we set glib = 0. So we should be fine to
include and build proxy_config_service_linux.cc.

I also tried including network_change_notifier_linux.cc in our build (even
though we already provide a factory) and it appears to build/run fine.

So this CL is no longer needed. :-) Thanks for your feedback/comments, Ryan.

Powered by Google App Engine
This is Rietveld 408576698