forked from mozilla/gecko-dev
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 828829 - Refactor Health Report policy out of services/healthrepo…
…rt; r=rnewman --HG-- rename : services/healthreport/HealthReportService.js => services/datareporting/DataReportingService.js rename : services/healthreport/modules-testing/mocks.jsm => services/datareporting/modules-testing/mocks.jsm rename : services/healthreport/policy.jsm => services/datareporting/policy.jsm rename : services/healthreport/tests/xpcshell/test_policy.js => services/datareporting/tests/xpcshell/test_policy.js extra : rebase_source : cf766bc99ff843f2d31f82b1c4be71313fbc65a8
- Loading branch information
Showing
24 changed files
with
391 additions
and
254 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# b2g: {3c2e2abc-06d4-11e1-ac3b-374f68613e61} | ||
# browser: {ec8030f7-c20a-464f-9b0e-13a3a9e97384} | ||
# mobile/android: {aa3c5121-dab2-40e2-81ca-7ea25febc110} | ||
# mobile/xul: {a23983c0-fd0e-11dc-95ff-0800200c9a66} | ||
# suite (comm): {92650c4d-4b8e-4d2a-b7eb-24ecf4f6b63a} | ||
# metro browser: {99bceaaa-e3c6-48c1-b981-ef9b46b67d60} | ||
|
||
# The Data Reporting Service drives collection and submission of metrics | ||
# and other useful data to Mozilla. It drives the display of the data | ||
# submission notification info bar and thus is required by Firefox Health | ||
# Report and Telemetry. | ||
|
||
component {41f6ae36-a79f-4613-9ac3-915e70f83789} DataReportingService.js | ||
contract @mozilla.org/datareporting/service;1 {41f6ae36-a79f-4613-9ac3-915e70f83789} | ||
category app-startup DataReportingService service,@mozilla.org/datareporting/service;1 application={3c2e2abc-06d4-11e1-ac3b-374f68613e61} application={ec8030f7-c20a-464f-9b0e-13a3a9e97384} application={aa3c5121-dab2-40e2-81ca-7ea25febc110} application={a23983c0-fd0e-11dc-95ff-0800200c9a66} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# 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/. | ||
|
||
DEPTH = @DEPTH@ | ||
topsrcdir = @top_srcdir@ | ||
srcdir = @srcdir@ | ||
VPATH = @srcdir@ | ||
|
||
include $(DEPTH)/config/autoconf.mk | ||
|
||
TEST_DIRS += tests | ||
|
||
MODULES_FILES := policy.jsm | ||
MODULES_DEST = $(FINAL_TARGET)/modules/services/datareporting | ||
INSTALL_TARGETS += MODULES | ||
|
||
TESTING_JS_MODULES := $(addprefix modules-testing/,mocks.jsm) | ||
TESTING_JS_MODULE_DIR := services/datareporting | ||
|
||
EXTRA_COMPONENTS := \ | ||
DataReporting.manifest \ | ||
DataReportingService.js \ | ||
$(NULL) | ||
|
||
include $(topsrcdir)/config/rules.mk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/* 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/. */ | ||
|
||
pref("datareporting.policy.dataSubmissionEnabled", true); | ||
pref("datareporting.policy.dataSubmissionPolicyAccepted", false); | ||
pref("datareporting.policy.dataSubmissionPolicyBypassAcceptance", false); | ||
pref("datareporting.policy.dataSubmissionPolicyNotifiedTime", "0"); | ||
pref("datareporting.policy.dataSubmissionPolicyResponseType", ""); | ||
pref("datareporting.policy.dataSubmissionPolicyResponseTime", "0"); | ||
pref("datareporting.policy.firstRunTime", "0"); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.