Merge "Add API to limit maximum time the profile can be turned off."