Merge "Add flag guard to isPrivateProfile() API" into main