What set the boarder between the Western US and Western British North America (now Canada) at the 49th parallel?

a
War of 1812
b
Convention of 1818
c
Doctrine of 1820
d
Adams-Onis Treaty