Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Check some prefs from the API, not from bootstrap #4810

Merged
merged 1 commit into from
Aug 30, 2018

Conversation

jaredhirsch
Copy link
Member

Move the history enabled and upload-disabled checks from bootstrap into the API.

It might make sense to just check all the prefs in a single API call, but this works for now.

This commit fixes #4531, and depends on the two commits from PR #4809.

@jaredhirsch jaredhirsch requested a review from ianb August 24, 2018 00:54
Copy link
Contributor

@ianb ianb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. I don't know if the async is necessary or not (depends on how the experiment_apis works, I guess?)

// 'aurora' - deprecated aurora channel (still observed in dxr)
// 'default' - local builds from source
// 'nightly-try' - nightly Try builds (QA may occasionally need to test with these)
async getUpdateChannel() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do these all need to be async?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope, I copied the examples a little too closely. Since experimental APIs extend the same base ExtensionAPI class as built-in APIs, and the async bit is definitely not required there, must not be required here, either.

@jaredhirsch jaredhirsch merged commit 2a375ca into master Aug 30, 2018
@jaredhirsch jaredhirsch deleted the 4531-pref-check-api branch August 30, 2018 00:16
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Replace history.enabled pref with privacy API
2 participants