Who was ruling France when the metric system was established?

The metric system was established in France in 1840 while Louis Philippe I was the monarch.

It had been used during the French Revolution, but many still used the old units, which were reestablished by Napoleon in 1812.