MB3 7b: Making a Halachically Acceptable Partnership with a Gentile According to the Rama (245:1-2)

The Rama quotes a bedieved opinion that even if they didn't make a condition upfront that he won't receive Shabbos profits, they can still divide it 50-50. What are the parameters of this halacha?