The British took Yangon and all of Lower Burma in the Second Anglo-Burmese War of 1852 , and then changed Yangon into the most important city of British Burma . The British seized Yangon and all of Lower Burma in the Second Anglo-Burmese War of 1852 , and subsequently transformed Yangon into the commercial and political hub of British Burma .