fune/toolkit/components/bitsdownload/components.conf
Adam Gashlin 05036fda25 Bug 1572844 - Consistently check for MOZ_BITS_DOWNLOAD. r=bytesized
BITS download can be disabled on Windows. This patch checks for the
config/define MOZ_BITS_DOWNLOAD when including the C++ parts of the
service, exposing the service in JS, setting the pref, and including
BITS-specific tests. For consistency and simplicity it also removes
the Windows checks; the configure system won't allow
MOZ_BITS_DOWNLOAD if not on Windows.

Differential Revision: https://phabricator.services.mozilla.com/D43493

--HG--
extra : moz-landing-system : lando
2019-08-26 23:38:50 +00:00

17 lines
604 B
Python

# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
# vim: set filetype=python:
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
Classes = []
if defined('MOZ_BITS_DOWNLOAD'):
Classes += [
{
'cid': '{495d6f3d-9748-4d30-8ce5-0290c0001edf}',
'contract_ids': ['@mozilla.org/bits;1'],
'singleton': True,
'constructor': 'GetBitsService',
'headers': ['Bits.h'],
},
]