Heat oil in a heavy bottomed pan, add the onions and green chilies, saute for a few minutes until the onions turn soft. Add the mashed potatoes, salt and red chili powder and stir well to combine. Saute for a few more minutes until the flavors come through.