This country was Poland and the decision was done in the Ribbentrop-Molotov Pact, which was oficially a pact of non-agression between the two powers but in fact divided Europe into two spheres of influence, one for each country, and Poland was divided.